docs-xml: add "smbd search ask sharemode"
authorRalph Boehme <slow@samba.org>
Fri, 30 Nov 2018 19:24:10 +0000 (20:24 +0100)
committerJeremy Allison <jra@samba.org>
Thu, 6 Dec 2018 00:43:13 +0000 (01:43 +0100)
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
docs-xml/smbdotconf/misc/smbdsearchasksharemode.xml [new file with mode: 0644]
lib/param/loadparm.c
source3/param/loadparm.c

diff --git a/docs-xml/smbdotconf/misc/smbdsearchasksharemode.xml b/docs-xml/smbdotconf/misc/smbdsearchasksharemode.xml
new file mode 100644 (file)
index 0000000..de78818
--- /dev/null
@@ -0,0 +1,13 @@
+<samba:parameter name="smbd search ask sharemode"
+                 context="S"
+                 type="boolean"
+                 xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
+<description>
+       <para>
+         This parameter allows disabling fetching file write time from the open
+         file handle database locking.tdb. It's a performance optimisation at
+         the expense of protocol correctness.
+       </para>
+</description>
+<value type="default">yes</value>
+</samba:parameter>
index a7dbc6f8f0bae99f90b7d76af264023241f9add8..886f0b06b4313c72bf8c929313f835106c89b63b 100644 (file)
@@ -2592,6 +2592,7 @@ struct loadparm_context *loadparm_init(TALLOC_CTX *mem_ctx)
        lp_ctx->sDefault->force_directory_mode = 0000;
        lp_ctx->sDefault->aio_read_size = 1;
        lp_ctx->sDefault->aio_write_size = 1;
+       lp_ctx->sDefault->smbd_search_ask_sharemode = true;
 
        DEBUG(3, ("Initialising global parameters\n"));
 
index d8be520dc518aefc4ed6746ee5370fa27a11fa3c..cdd06c0a2c78d4fd7945d8473f3c38e72217c1e6 100644 (file)
@@ -246,6 +246,7 @@ static const struct loadparm_service _sDefault =
        .durable_handles = true,
        .check_parent_directory_delete_on_close = false,
        .param_opt = NULL,
+       .smbd_search_ask_sharemode = true,
        .dummy = ""
 };