s3/locking: make find_share_mode_entry public
authorRalph Boehme <slow@samba.org>
Fri, 26 May 2017 09:35:52 +0000 (11:35 +0200)
committerRalph Boehme <slow@samba.org>
Sun, 28 May 2017 12:50:18 +0000 (14:50 +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>
source3/locking/locking.c
source3/locking/proto.h

index 51c16405892716fdc8269ca8cef803007c68473e..037a987666876a85805383663822e6ecea94ea52 100644 (file)
@@ -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;
index 5d2326a40aa04dfbb91a15d8eb07393b2afaf00e..6fb2bf2fafe0809b1ed7a8c7c5635186deef3728 100644 (file)
@@ -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,