]> git.ipfire.org Git - thirdparty/samba.git/commit
locking: move share_mode_flags_[gs]et to share_mode_lock.c
authorVolker Lendecke <vl@samba.org>
Thu, 5 Nov 2020 14:39:51 +0000 (15:39 +0100)
committerJeremy Allison <jra@samba.org>
Tue, 10 Nov 2020 19:49:35 +0000 (19:49 +0000)
commitdf2ffaaa2097676cc1ddfc4239f53aef6afc4869
treefeee931516942cc79a92511d262f284acd99da3b
parent4b6f4ee43e376104f6a7f6556c135ff729f5d40b
locking: move share_mode_flags_[gs]et to share_mode_lock.c

These routines parse and marshall the uint16 summary flag in
share_mode_data. open_file_ntcreate() and open_directory() are the
only real users of this. The user in oplock.c is just the lazy reset
of the "read lease exists somewhere" after asynchronously breaking
read oplocks after a write request.

This moves handling the flags into locking/ to consolidate data
structure handling of "share_mode_data" there.

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