smbd: Add share_mode_forall_leases()
authorVolker Lendecke <vl@samba.org>
Mon, 17 Sep 2018 11:14:22 +0000 (13:14 +0200)
committerChristof Schmitt <cs@samba.org>
Sun, 14 Apr 2019 04:01:32 +0000 (04:01 +0000)
commit302bdd7f9132b64daf65ceddc1658c3f91d7f0c1
treeffe7eda9b5d71a798fff9c7cd2ccd0ae8a561ed0
parentfbe6b3e900e5b1f270e33b4c63fd651dfbfd53b8
smbd: Add share_mode_forall_leases()

Function to walk all leases for a file exactly once. This used to be simpler
with the leases[] array, thus this function that encapsulates the complexity.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Christof Schmitt <cs@samba.org>
source3/locking/locking.c
source3/locking/proto.h