diff options
author | Stefan Metzmacher <metze@samba.org> | 2022-08-15 17:42:33 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2022-09-20 00:34:35 +0000 |
commit | a4dd4d5f0fdb8cb242dde93cf620f238fccf9e9c (patch) | |
tree | e37e18872bffa42044deacbc0d8ac429d481a99e /source3/smbd/proto.h | |
parent | 26669613e2dc673d55e0f8977d7758477eab6fd6 (diff) | |
download | samba-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