]> git.ipfire.org Git - thirdparty/samba.git/commit
s3/locking: add reset_delete_on_close_lck_open_id()
authorRalph Boehme <slow@samba.org>
Tue, 2 Dec 2025 14:12:18 +0000 (15:12 +0100)
committerRalph Boehme <slow@samba.org>
Fri, 17 Jul 2026 10:18:37 +0000 (10:18 +0000)
commitdd7d6487f33a30622f12356ee61946f145df139d
treedd507b85aba814939f1c4c7887c77506ceaf2d66
parente9bc94e3c1c19ad149b174ee0af018b6bce2bade
s3/locking: add reset_delete_on_close_lck_open_id()

Factor out reset_delete_on_close_lck_internal() and then make the
existing reset_delete_on_close_lck() a wrapper around it.

No change in behaviour for reset_delete_on_close_lck().

reset_delete_on_close_lck_open_id() receives the open_persistent_id from the
smbXsrv_open_global.tdb as an additional parameter

A later commit will use reset_delete_on_close_lck_open_id() in the open
scavenging code to ensure the delete token is only removed if the open-id
matches.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Anoop C S <anoopcs@samba.org>
source3/locking/locking.c
source3/locking/proto.h