smbd: Add lease key to share_mode_entry
authorVolker Lendecke <vl@samba.org>
Thu, 13 Sep 2018 10:47:55 +0000 (12:47 +0200)
committerChristof Schmitt <cs@samba.org>
Sun, 14 Apr 2019 04:01:30 +0000 (04:01 +0000)
commit10a60df1ccc5e5992c63802861589fb81372f64e
tree0230cae6970ec24ef69504cc04ff829f3fed7c75
parent6cd59da1719e3f4830a7cea5db4347bf9e319b92
smbd: Add lease key to share_mode_entry

Instead of indexing into the leases[] array, put the lease_db reference into
the share_mode_entry. For simplicity, put in the client guid as well. We
*might* be able to retrieve that from somewhere else, but as other smbd
processes have to look at the lease values, put in the full leases_db index
data.

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