From 525b3ee2aa6eb183cf54603141667ed1b8ca6c71 Mon Sep 17 00:00:00 2001 From: Volker Lendecke 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 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 @@ + + + + + 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 64 + the SPARSE_FILES file system capability flag is set. Use other + decimal values to specify the bitmask you need to fake. + + + +0 + -- 1.6.0.4