diff --git a/docs-xml/smbdotconf/misc/smbdsearchasksharemode.xml b/docs-xml/smbdotconf/misc/smbdsearchasksharemode.xml new file mode 100644 index 00000000000..de78818c5f8 --- /dev/null +++ b/docs-xml/smbdotconf/misc/smbdsearchasksharemode.xml @@ -0,0 +1,13 @@ + + + + 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. + + +yes + diff --git a/lib/param/loadparm.c b/lib/param/loadparm.c index a7dbc6f8f0b..886f0b06b43 100644 --- a/lib/param/loadparm.c +++ b/lib/param/loadparm.c @@ -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")); diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c index d8be520dc51..cdd06c0a2c7 100644 --- a/source3/param/loadparm.c +++ b/source3/param/loadparm.c @@ -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 = "" };