]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: Fix a comment
authorVolker Lendecke <vl@samba.org>
Fri, 10 Oct 2025 13:51:14 +0000 (15:51 +0200)
committerVolker Lendecke <vl@samba.org>
Mon, 17 Nov 2025 08:33:11 +0000 (08:33 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/smbd/files.c

index b0530daf155c711554edb716ffab442d7e0bc98c..e901dae2a3e8b85245e0838e6b52cc99cdb408d0 100644 (file)
@@ -93,8 +93,10 @@ static void fsp_set_gen_id(files_struct *fsp)
        static uint64_t gen_id = UINT32_MAX;
 
        /*
-        * These ids are only used for internal opens, which gives us 4 billion
-        * opens until we wrap.
+        * We use the space above UINT32_MAX for internal opens so
+        * that we don't conflict with real opens. Real opens use the
+        * persistent part of the file handle, which is cut to 32-bits
+        * to be used as an index in srvsvc calls.
         */
        gen_id++;
        if (gen_id == 0) {