]> git.ipfire.org Git - thirdparty/samba.git/commit
smbd: support breaking leases on an object where we don't have an own internal open
authorRalph Boehme <slow@samba.org>
Thu, 22 May 2025 14:57:49 +0000 (16:57 +0200)
committerRalph Boehme <slow@samba.org>
Wed, 28 May 2025 15:06:29 +0000 (15:06 +0000)
commit03c46342e2a65e6d81bd581471310c0ec2cbbdfb
tree6f17c85cda3c3086560b6322ab359680eb4c1b45
parent509081e7ed064899701a9e53b1597c33bcf5b77d
smbd: support breaking leases on an object where we don't have an own internal open

So far, when dealing with the rename destination, we had an internal open on
that which ensured get_existing_share_mode_lock() would always return a
lock.

Subsequently I'll want delay_for_handle_lease_break_send() to be callable on an
object that doesn't have a full internal open including locking.tdb entry, but
merely an open handle from filename_convert_dirfsp().

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

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Bjoern Jacke <bjacke@samba.org>
source3/smbd/smb2_oplock.c