smbd: Add file_has_read_lease()
authorVolker Lendecke <vl@samba.org>
Sun, 30 Jun 2019 06:54:20 +0000 (08:54 +0200)
committerRalph Boehme <slow@samba.org>
Thu, 4 Jul 2019 14:03:29 +0000 (14:03 +0000)
commit0d4c4e045ec8a56289cb18b229b9a40104113608
treeb9a13a9c358ecf1481d991a04291022bda9d4ff7
parent01428c55dd0440976a0a319823cf7bc6113f508a
smbd: Add file_has_read_lease()

This caches share_mode_data->flags in the fsp, cache flush happening
on tdb_seqnum change.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/include/vfs.h
source3/locking/proto.h
source3/locking/share_mode_lock.c