smbd: Add share mode flags
authorVolker Lendecke <vl@samba.org>
Fri, 9 Aug 2019 14:27:48 +0000 (16:27 +0200)
committerJeremy Allison <jra@samba.org>
Tue, 17 Sep 2019 22:49:39 +0000 (22:49 +0000)
commitac85ec5ed855d8d0bc2564cbd33a580a8db6818e
tree81743e5b756d031c0de3b6d2fbf60f2084e6fe3c
parent86b4907853e8df20ebe3ec6871aa3210f1bde201
smbd: Add share mode flags

This will contain a summary of the "most restrictive" share mode and
lease, i.e. intersection of all share_access entries and the union of
all access_mask and leases in the share mode array. This way
open_mode_check in the non-conflicting case will only have to look at
the summary and not walk the share mode array.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/librpc/idl/open_files.idl
source3/locking/share_mode_lock.c
source3/smbd/open.c
source3/smbd/oplock.c