]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
vfs_default: rename durable_reconnect_fn() to share_mode_entry_durable_reconnect_cb()
authorRalph Boehme <slow@samba.org>
Tue, 2 Jun 2026 06:06:46 +0000 (08:06 +0200)
committerRalph Boehme <slow@samba.org>
Fri, 17 Jul 2026 10:18:36 +0000 (10:18 +0000)
Currently we have

  vfs_default_durable_reconnect_fn()

and

  durable_reconnect_fn

which can be a bit confusing when reading the code for the first time (or even
multiple times...).

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Anoop C S <anoopcs@samba.org>
source3/smbd/durable.c

index 510e1db19ac14ac850bbed01d05d709c6304758c..cbc39bc05ac0439469bf3e0e10f28d399db5239e 100644 (file)
@@ -539,7 +539,7 @@ struct durable_reconnect_state {
        struct share_mode_entry *e;
 };
 
-static bool durable_reconnect_fn(
+static bool share_mode_entry_durable_reconnect_cb(
        struct share_mode_entry *e,
        bool *modified,
        void *private_data)
@@ -593,7 +593,9 @@ static void vfs_default_durable_reconnect_fn(struct share_mode_lock *lck,
        int ret;
        bool ok;
 
-       ok = share_mode_forall_entries(lck, durable_reconnect_fn, &rstate);
+       ok = share_mode_forall_entries(lck,
+                                      share_mode_entry_durable_reconnect_cb,
+                                      &rstate);
        if (!ok) {
                DBG_WARNING("share_mode_forall_entries failed\n");
                state->status = NT_STATUS_INTERNAL_DB_ERROR;