From: Volker Lendecke Date: Fri, 10 Oct 2025 13:51:14 +0000 (+0200) Subject: smbd: Fix a comment X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=84dd7fe6f0312d0d6d505e9bf6c19c9bfae6b417;p=thirdparty%2Fsamba.git smbd: Fix a comment Signed-off-by: Volker Lendecke Reviewed-by: Ralph Boehme --- diff --git a/source3/smbd/files.c b/source3/smbd/files.c index b0530daf155..e901dae2a3e 100644 --- a/source3/smbd/files.c +++ b/source3/smbd/files.c @@ -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) {