This boolean option tells <command moreinfo="none">smbd</command> whether to
globally negotiate SMB2 leases on file open requests. Leasing is an SMB2-only
feature which allows clients to aggressively cache files locally above and
- beyond the caching allowed by SMB1 oplocks. This (experimental) parameter is
- set to off by default until the SMB2 leasing code is declared fully stable.
+ beyond the caching allowed by SMB1 oplocks.
</para>
<para>
<para>Note that the write cache won't be used for file handles with a smb2 write lease.</para>
- <para>
- The Samba implementation of leases is currently marked as experimental!
- </para>
</description>
<related>oplocks</related>
<related>kernel oplocks</related>
<related>level2 oplocks</related>
<related>write cache size</related>
-<value type="default">no</value>
+<value type="default">yes</value>
</samba:parameter>
lpcfg_do_global_parameter(lp_ctx, "aio max threads", "100");
+ lpcfg_do_global_parameter(lp_ctx, "smb2 leases", "yes");
+
/* Allow modules to adjust defaults */
for (defaults_hook = defaults_hooks; defaults_hook;
defaults_hook = defaults_hook->next) {
Globals.smb2_max_write = DEFAULT_SMB2_MAX_WRITE;
Globals.smb2_max_trans = DEFAULT_SMB2_MAX_TRANSACT;
Globals.smb2_max_credits = DEFAULT_SMB2_MAX_CREDITS;
- Globals.smb2_leases = false;
+ Globals.smb2_leases = true;
lpcfg_string_set(Globals.ctx, &Globals.ncalrpc_dir,
get_dyn_NCALRPCDIR());