s3/locking: make find_share_mode_entry public
authorRalph Boehme <slow@samba.org>
Fri, 26 May 2017 09:35:52 +0000 (11:35 +0200)
committerKarolin Seeger <kseeger@samba.org>
Fri, 2 Jun 2017 07:53:16 +0000 (09:53 +0200)
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>
(cherry picked from commit 9d7739e819d5699209b5eacad4a0e2a8b8da0a86)

source3/locking/locking.c
source3/locking/proto.h

index e6d3918db79b41cd694f7588b23371e4105765d3..3320e4a7224d32505bfce02b2e4a169cc4559884 100644 (file)
@@ -858,7 +858,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;
index 461f89a89f5b7dcee721d23e30377dc61d020cd1..93077ef9d2b7bc9988661a30059bfd6d1b81a569 100644 (file)
@@ -169,6 +169,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,