]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
scavenger: make share_mode_cleanup_disconnected() public
authorRalph Boehme <slow@samba.org>
Tue, 25 Nov 2025 15:25:16 +0000 (16:25 +0100)
committerRalph Boehme <slow@samba.org>
Fri, 17 Jul 2026 10:18:37 +0000 (10:18 +0000)
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Anoop C S <anoopcs@samba.org>
source3/smbd/scavenger.c
source3/smbd/scavenger.h

index 06b9e67511a6ff254a76000d53a94f78ed20f0d3..d725af9f06cacbd36d120a828e752c8f055b3128 100644 (file)
@@ -510,7 +510,7 @@ static bool cleanup_disconnected_share_mode_entry_fn(
        return true;
 }
 
-static bool share_mode_cleanup_disconnected(
+bool share_mode_cleanup_disconnected(
        struct file_id fid, uint64_t open_persistent_id, uint32_t name_hash)
 {
        struct cleanup_disconnected_state state = {
index 819e08c60f045a360cdcacd95a064ecb1fde706f..249935988097369acfc3f46f3c1dd396ec4d4ecb 100644 (file)
@@ -31,4 +31,8 @@ void scavenger_schedule_disconnected(struct messaging_context *msg_ctx,
                                     struct file_id *file_id,
                                     uint32_t name_hash);
 
+bool share_mode_cleanup_disconnected(struct file_id fid,
+                                    uint64_t open_persistent_id,
+                                    uint32_t name_hash);
+
 #endif