The Samba-Bugzilla – Attachment 4755 Details for
Bug 6765
smbd needs to optionally announce SPARSE_FILES in qfsinfo
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
6765.patch (text/plain), 2.65 KB, created by
Volker Lendecke
on 2009-09-29 07:40:23 UTC
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Volker Lendecke
Created:
2009-09-29 07:40:23 UTC
Size:
2.65 KB
patch
obsolete
>From 525b3ee2aa6eb183cf54603141667ed1b8ca6c71 Mon Sep 17 00:00:00 2001 >From: Volker Lendecke <vl@samba.org> >Date: Wed, 9 Sep 2009 21:58:47 +0200 >Subject: [PATCH] s3:smbd: Add a "hidden" parameter "share:fake_fscaps" > >This is needed to support some special app I've just come across where I had to >set the SPARSE_FILES bit (0x40) to make it work against Samba at all. There >might be others to fake. This is definitely a "Don't touch if you don't know >what you're doing" thing, so I decided to make this an undocumented parametric >parameter. > >I know this sucks, so feel free to beat me up on this. But I don't think it >will hurt. >--- > source3/smbd/trans2.c | 3 +++ > 1 files changed, 3 insertions(+), 0 deletions(-) > >diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c >index 68d2c97..60924df 100644 >--- a/source3/smbd/trans2.c >+++ b/source3/smbd/trans2.c >@@ -2691,6 +2691,9 @@ cBytesSector=%u, cUnitTotal=%u, cUnitAvail=%d\n", (unsigned int)st.st_dev, (unsi > > /* Capabilities are filled in at connection time through STATVFS call */ > additional_flags |= conn->fs_capabilities; >+ additional_flags |= lp_parm_int(conn->params->service, >+ "share", "fake_fscaps", >+ 0); > > SIVAL(pdata,0,FILE_CASE_PRESERVED_NAMES|FILE_CASE_SENSITIVE_SEARCH| > FILE_SUPPORTS_OBJECT_IDS|FILE_UNICODE_ON_DISK| >-- >1.6.0.4 > > >From d99a36c8bcdaeae835f80997d540428fd5cca676 Mon Sep 17 00:00:00 2001 >From: Volker Lendecke <vl@samba.org> >Date: Tue, 29 Sep 2009 14:34:16 +0200 >Subject: [PATCH] s3: Document the "share:fake_fscaps" parameter, fix bug 6765 > >--- > docs-xml/smbdotconf/protocol/sharefakefscaps.xml | 20 ++++++++++++++++++++ > 1 files changed, 20 insertions(+), 0 deletions(-) > create mode 100644 docs-xml/smbdotconf/protocol/sharefakefscaps.xml > >diff --git a/docs-xml/smbdotconf/protocol/sharefakefscaps.xml b/docs-xml/smbdotconf/protocol/sharefakefscaps.xml >new file mode 100644 >index 0000000..713b95b >--- /dev/null >+++ b/docs-xml/smbdotconf/protocol/sharefakefscaps.xml >@@ -0,0 +1,20 @@ >+<samba:parameter name="share:fake_fscaps" >+ context="G" >+ type="string" >+ advanced="1" developer="0" >+ xmlns:samba="http://www.samba.org/samba/DTD/samba-doc"> >+<description> >+ >+ <para> >+ This is needed to support some special application that makes >+ QFSINFO calls to check whether we set the SPARSE_FILES bit >+ (0x40). If this bit is not set that particular application >+ refuses to work against >+ Samba. With <smbconfoption name="share:fake_fscaps">64</smbconfoption> >+ the SPARSE_FILES file system capability flag is set. Use other >+ decimal values to specify the bitmask you need to fake. >+ </para> >+ >+</description> >+<value type="default">0</value> >+</samba:parameter> >-- >1.6.0.4 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 6765
: 4755