From 9d7739e819d5699209b5eacad4a0e2a8b8da0a86 Mon Sep 17 00:00:00 2001 From: Ralph Boehme Date: Fri, 26 May 2017 11:35:52 +0200 Subject: [PATCH] s3/locking: make find_share_mode_entry public BUG: https://bugzilla.samba.org/show_bug.cgi?id=12798 Signed-off-by: Ralph Boehme Reviewed-by: Stefan Metzmacher Reviewed-by: Jeremy Allison --- source3/locking/locking.c | 2 +- source3/locking/proto.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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, -- 2.11.4.GIT