diff options
author | Volker Lendecke <vl@samba.org> | 2019-08-05 14:57:28 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2019-08-06 21:49:29 +0000 |
commit | 3851062916cbee2114f6aa5154cdc89425724d87 (patch) | |
tree | 01c539de030d85483766958484e280bba401b10b /source3/locking | |
parent | e94ebc705542ffca536d15e28fc99e023f4748bc (diff) | |
download | samba-3851062916cbee2114f6aa5154cdc89425724d87.tar.gz |
smbd: Move fsp_client_guid() to locking/
Yes, this adds another peek from locking/ back into smbd/proto.h, but
locking/locking.c does the same already.
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/locking')
-rw-r--r-- | source3/locking/leases_util.c | 6 | ||||
-rw-r--r-- | source3/locking/proto.h | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/source3/locking/leases_util.c b/source3/locking/leases_util.c index af1e8374128..f10c91f0d32 100644 --- a/source3/locking/leases_util.c +++ b/source3/locking/leases_util.c @@ -23,6 +23,7 @@ #include "includes.h" #include "../librpc/gen_ndr/open_files.h" #include "locking/proto.h" +#include "smbd/globals.h" uint32_t map_oplock_to_lease_type(uint16_t op_type) { @@ -70,3 +71,8 @@ bool fsp_lease_type_is_exclusive(const struct files_struct *fsp) return lease_type_is_exclusive(lease_type); } + +const struct GUID *fsp_client_guid(const files_struct *fsp) +{ + return &fsp->conn->sconn->client->connections->smb2.client.guid; +} diff --git a/source3/locking/proto.h b/source3/locking/proto.h index 3eb928ab12e..57619b81866 100644 --- a/source3/locking/proto.h +++ b/source3/locking/proto.h @@ -250,5 +250,6 @@ uint32_t map_oplock_to_lease_type(uint16_t op_type); uint32_t fsp_lease_type(const struct files_struct *fsp); uint32_t lease_type_is_exclusive(uint32_t lease_type); bool fsp_lease_type_is_exclusive(const struct files_struct *fsp); +const struct GUID *fsp_client_guid(const files_struct *fsp); #endif /* _LOCKING_PROTO_H_ */ |