]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: remove comments about deprecated 'write cache size'
authorJones Syue <jonessyue@qnap.com>
Fri, 2 Jun 2023 06:40:09 +0000 (14:40 +0800)
committerJule Anger <janger@samba.org>
Mon, 12 Jun 2023 07:26:15 +0000 (07:26 +0000)
The option 'write cache size' was removed since samba-4.12 version:
https://wiki.samba.org/index.php/Samba_4.12_Features_added/changed
https://git.samba.org/?p=samba.git;a=commit;h=3fea05e0
https://git.samba.org/?p=samba.git;a=commit;h=728fabea

It is supposed to remove comments about deprecated 'write cache size',
in order to avoid confusion when reading source code and documents.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15383

Signed-off-by: Jones Syue <jonessyue@qnap.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Fri Jun  2 09:48:17 UTC 2023 on atb-devel-224

(cherry picked from commit 9c24f853a84e1435235ba58ffcaaeff7dd80f6aa)

docs-xml/smbdotconf/locking/smb2leases.xml
docs-xml/smbdotconf/tuning/aioreadsize.xml
docs-xml/smbdotconf/tuning/aiowritesize.xml
source3/smbd/smb2_read.c

index 5a490875af72a31b298f8889a302d6e0b405e60d..89ff307d8f9236ed8b1e387c5ec4583a7b6de7bd 100644 (file)
@@ -15,8 +15,6 @@
        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>
-
 </description>
 
 <related>oplocks</related>
index 71120a803888e4da1b5c9f3f548632c56d3f36d3..5218f34a6d634b0b30d0404c37bca67b88ecb8e4 100644 (file)
@@ -6,7 +6,7 @@
   <para>If this integer parameter is set to a non-zero value,
     Samba will read from files asynchronously when the request size is bigger
     than this value. Note that it happens only for non-chained and non-chaining
-    reads and when not using write cache.</para>
+    reads.</para>
   <para>The only reasonable values for this parameter are 0 (no async I/O) and
     1 (always do async I/O).</para>
   <related>aio write size</related>
index cdc079d13dc813f911ebebcc14df620bfebd6059..029e1d135c0aed8e30f0f8f9832cee9b4aa3da92 100644 (file)
@@ -6,7 +6,7 @@
   <para>If this integer parameter is set to a non-zero value,
     Samba will write to files asynchronously when the request size is bigger
     than this value. Note that it happens only for non-chained and non-chaining
-    reads and when not using write cache.</para>
+    writes.</para>
   <para>The only reasonable values for this parameter are 0 (no async I/O) and
     1 (always do async I/O).</para>
   <para>Compared to <smbconfoption name="aio read size"/> this parameter has
index 4c6822f2c74ef741314d8b0ce30bd7ccd78bf47d..ff945302f54ca972caf0943c9e9d9d5d1e1a3b88 100644 (file)
@@ -353,7 +353,6 @@ static NTSTATUS schedule_smb2_sendfile_read(struct smbd_smb2_request *smb2req,
         * Signing is active OR
         * This is a compound SMB2 operation OR
         * fsp is a STREAM file OR
-        * We're using a write cache OR
         * It's not a regular file OR
         * Requested offset is greater than file size OR
         * there's not enough data in the file.