diff options
author | Ralph Boehme <slow@samba.org> | 2017-05-26 11:35:52 +0200 |
---|---|---|
committer | Ralph Boehme <slow@samba.org> | 2017-05-28 14:50:18 +0200 |
commit | 9d7739e819d5699209b5eacad4a0e2a8b8da0a86 (patch) | |
tree | f7cacde93d42a339ba86f73d5c086ff7439fc33d /source3/locking | |
parent | 5aa06145c63a3c6a0a61cf58059b3e04aa0a256a (diff) | |
download | samba-9d7739e819d5699209b5eacad4a0e2a8b8da0a86.tar.gz |
s3/locking: make find_share_mode_entry public
BUG: https://bugzilla.samba.org/show_bug.cgi?id=12798
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/locking')
-rw-r--r-- | source3/locking/locking.c | 2 | ||||
-rw-r--r-- | source3/locking/proto.h | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/source3/locking/locking.c b/source3/locking/locking.c index 51c16405892..037a9876668 100644 --- a/source3/locking/locking.c +++ b/source3/locking/locking.c @@ -859,7 +859,7 @@ bool set_share_mode(struct share_mode_lock *lck, struct files_struct *fsp, return true; } -static struct share_mode_entry *find_share_mode_entry( +struct share_mode_entry *find_share_mode_entry( struct share_mode_lock *lck, files_struct *fsp) { struct share_mode_data *d = lck->data; diff --git a/source3/locking/proto.h b/source3/locking/proto.h index 5d2326a40aa..6fb2bf2fafe 100644 --- a/source3/locking/proto.h +++ b/source3/locking/proto.h @@ -176,6 +176,8 @@ bool share_mode_stale_pid(struct share_mode_data *d, uint32_t idx); bool set_share_mode(struct share_mode_lock *lck, struct files_struct *fsp, uid_t uid, uint64_t mid, uint16_t op_type, uint32_t lease_idx); +struct share_mode_entry *find_share_mode_entry(struct share_mode_lock *lck, + files_struct *fsp); void remove_stale_share_mode_entries(struct share_mode_data *d); bool del_share_mode(struct share_mode_lock *lck, files_struct *fsp); bool mark_share_mode_disconnected(struct share_mode_lock *lck, |