Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
and <smbconfoption name="kernel oplocks">no</smbconfoption>.
</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>
<related>oplocks</related>
<related>kernel oplocks</related>
<related>level2 oplocks</related>
+<related>write cache size</related>
<value type="default">no</value>
</samba:parameter>
<para>The integer parameter specifies the size of this cache
(per oplocked file) in bytes.</para>
+
+ <para>Note that the write cache won't be used for file handles with a smb2 write lease.</para>
</description>
+<related>smb2 leases</related>
<value type="default">0</value>
<value type="example">262144<comment> for a 256k cache size per file</comment></value>
</samba:parameter>
if (!fsp->modified &&
EXCLUSIVE_OPLOCK_TYPE(fsp->oplock_type) &&
(wcp == NULL)) {
+ /*
+ * Note: no write cache with leases!
+ * as the handles would have to share the write cache
+ * that's possible but an improvement for another day...
+ */
setup_write_cache(fsp, fsp->fsp_name->st.st_ex_size);
wcp = fsp->wcp;
}