s3:locking: Rename share_mode_forall->share_entry_forall
authorVolker Lendecke <vl@samba.org>
Tue, 23 Sep 2014 03:18:54 +0000 (05:18 +0200)
committerJeremy Allison <jra@samba.org>
Fri, 31 Oct 2014 02:47:40 +0000 (03:47 +0100)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source3/locking/proto.h
source3/locking/share_mode_lock.c
source3/rpc_server/srvsvc/srv_srvsvc_nt.c
source3/utils/status.c

index 46eec2af06d242aa5a31d61a59ec73aa4c2756e8..ce8c25cf52a56375561437ec25c9b1390ecf0764 100644 (file)
@@ -190,8 +190,8 @@ bool is_delete_on_close_set(struct share_mode_lock *lck, uint32_t name_hash);
 bool set_sticky_write_time(struct file_id fileid, struct timespec write_time);
 bool set_write_time(struct file_id fileid, struct timespec write_time);
 struct timespec get_share_mode_write_time(struct share_mode_lock *lck);
-int share_mode_forall(void (*fn)(const struct share_mode_entry *, const char *,
-                                const char *, void *),
+int share_entry_forall(void (*fn)(const struct share_mode_entry *, const char *,
+                                 const char *, void *),
                      void *private_data);
 bool share_mode_cleanup_disconnected(struct file_id id,
                                     uint64_t open_persistent_id);
index 12f499b1b97cdaf991bf4941e78d472ed8e8063c..53039eb81adab044855f7de1bab3b669b1e529cb 100644 (file)
@@ -499,8 +499,8 @@ static int traverse_fn(struct db_record *rec, void *_state)
  share mode system.
 ********************************************************************/
 
-int share_mode_forall(void (*fn)(const struct share_mode_entry *, const char *,
-                                const char *, void *),
+int share_entry_forall(void (*fn)(const struct share_mode_entry *,
+                                 const char *, const char *, void *),
                      void *private_data)
 {
        struct forall_state state;
index 855b8c7fb72cac44222e4d6fac34d343be3f0701..d2f05f30ccd10c9d482ffe4bc49d122e570b5b8d 100644 (file)
@@ -166,7 +166,7 @@ static WERROR net_enum_files(TALLOC_CTX *ctx,
        f_enum_cnt.username = username;
        f_enum_cnt.ctr3 = *ctr3;
 
-       share_mode_forall( enum_file_fn, (void *)&f_enum_cnt );
+       share_entry_forall( enum_file_fn, (void *)&f_enum_cnt );
 
        *ctr3 = f_enum_cnt.ctr3;
 
@@ -867,7 +867,7 @@ static void net_count_files_for_all_sess(struct srvsvc_NetSessCtr1 *ctr1,
        s_file_info.resume_handle = resume_handle;
        s_file_info.num_entries = num_entries;
 
-       share_mode_forall(count_sess_files_fn, &s_file_info);
+       share_entry_forall(count_sess_files_fn, &s_file_info);
 }
 
 /*******************************************************************
@@ -984,7 +984,7 @@ static void count_share_opens(struct srvsvc_NetConnInfo1 *arr,
        sfs.resp_entries = resp_entries;
        sfs.total_entries = total_entries;
 
-       share_mode_forall(share_file_fn, &sfs);
+       share_entry_forall(share_file_fn, &sfs);
 }
 
 /****************************************************************************
@@ -2744,7 +2744,7 @@ WERROR _srvsvc_NetFileClose(struct pipes_struct *p,
        r->out.result = WERR_BADFILE;
        state.r = r;
        state.msg_ctx = p->msg_ctx;
-       share_mode_forall(enum_file_close_fn, &state);
+       share_entry_forall(enum_file_close_fn, &state);
        return r->out.result;
 }
 
index 7bbcea5637c4e7666e00ab0a098682086126fe15..2c850bb591b79e87106a09319304e4dcc6af5594 100644 (file)
@@ -526,7 +526,7 @@ int main(int argc, const char *argv[])
                        goto done;
                }
 
-               result = share_mode_forall(print_share_mode, NULL);
+               result = share_entry_forall(print_share_mode, NULL);
 
                if (result == 0) {
                        d_printf("No locked files\n");