s3:smbd: document the interaction between "smb2 leases" and "write cache size"
[sfrench/samba-autobuild/.git] / source3 / smbd / fileio.c
index 9f3cc1a960d49fa744177c05f5791fd7d3208d39..2fe04324ee1bd7b69293544c25fcee4b668dfd3f 100644 (file)
@@ -339,6 +339,11 @@ ssize_t write_file(struct smb_request *req,
        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;
        }