diff options
author | Ralph Boehme <slow@samba.org> | 2018-12-02 10:07:59 +0100 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2018-12-06 01:43:14 +0100 |
commit | 38d819e89924e2a93d7e3fca14471497d5d24d25 (patch) | |
tree | 61d3ee5916aca09d02548b34cae326b9f449ea85 | |
parent | 941d7e159a8098b12294ca561fd8e4b8f235c18f (diff) | |
download | samba-38d819e89924e2a93d7e3fca14471497d5d24d25.tar.gz |
docs-xml: add "smbd getinfo ask sharemode"
Counterpart for "smbd search ask sharemode" for getinfo.
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
-rw-r--r-- | docs-xml/smbdotconf/misc/smbdgetinfoasksharemode.xml | 14 | ||||
-rw-r--r-- | lib/param/loadparm.c | 1 | ||||
-rw-r--r-- | source3/param/loadparm.c | 1 |
3 files changed, 16 insertions, 0 deletions
diff --git a/docs-xml/smbdotconf/misc/smbdgetinfoasksharemode.xml b/docs-xml/smbdotconf/misc/smbdgetinfoasksharemode.xml new file mode 100644 index 00000000000..1bef948ad2b --- /dev/null +++ b/docs-xml/smbdotconf/misc/smbdgetinfoasksharemode.xml @@ -0,0 +1,14 @@ +<samba:parameter name="smbd getinfo 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 when a client requests file or + directory metadata. It's a performance optimisation at the expense of + protocol correctness. + </para> +</description> +<value type="default">yes</value> +</samba:parameter> diff --git a/lib/param/loadparm.c b/lib/param/loadparm.c index 886f0b06b43..f31ef2319ac 100644 --- a/lib/param/loadparm.c +++ b/lib/param/loadparm.c @@ -2593,6 +2593,7 @@ struct loadparm_context *loadparm_init(TALLOC_CTX *mem_ctx) lp_ctx->sDefault->aio_read_size = 1; lp_ctx->sDefault->aio_write_size = 1; lp_ctx->sDefault->smbd_search_ask_sharemode = true; + lp_ctx->sDefault->smbd_getinfo_ask_sharemode = true; DEBUG(3, ("Initialising global parameters\n")); diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c index cdd06c0a2c7..29d9d59390b 100644 --- a/source3/param/loadparm.c +++ b/source3/param/loadparm.c @@ -247,6 +247,7 @@ static const struct loadparm_service _sDefault = .check_parent_directory_delete_on_close = false, .param_opt = NULL, .smbd_search_ask_sharemode = true, + .smbd_getinfo_ask_sharemode = true, .dummy = "" }; |