summaryrefslogtreecommitdiff
path: root/source3/smbd/proto.h
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2022-08-15 17:42:33 +0200
committerJeremy Allison <jra@samba.org>2022-09-20 00:34:35 +0000
commita4dd4d5f0fdb8cb242dde93cf620f238fccf9e9c (patch)
treee37e18872bffa42044deacbc0d8ac429d481a99e /source3/smbd/proto.h
parent26669613e2dc673d55e0f8977d7758477eab6fd6 (diff)
downloadsamba-a4dd4d5f0fdb8cb242dde93cf620f238fccf9e9c.tar.gz
s3:smbd: maintain all SHARE_MODE_LEASE_* flags not only _READ
Remember SMB2 Create is the only was to upgrade a lease. The strategy is that opening of a file will always result in storing the total lease bits. But we're lazy clearing the flags on close. We'll only clear them by traversing all entries when we break a NONE or when opening a new handle. We don't do any decision on SHARE_MODE_LEASE_{HANDLE,WRITE}, maybe we'll do in future, but at least it should be much more sane for debugging now! BUG: https://bugzilla.samba.org/show_bug.cgi?id=15125 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/smbd/proto.h')
0 files changed, 0 insertions, 0 deletions