vfs_shadow_copy2: add shadow_copy2_strip_snapshot_converted
authorRalph Boehme <slow@samba.org>
Thu, 22 Nov 2018 10:04:54 +0000 (11:04 +0100)
committerKarolin Seeger <kseeger@samba.org>
Thu, 13 Dec 2018 12:48:22 +0000 (13:48 +0100)
Can be used by callers to determine if a path is in fact pointing at a
file in a snapshot. Will be used in the next commit.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=13688

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit 14d6488d355e960ab02e72c414cbbc316f1db718)

source3/modules/vfs_shadow_copy2.c

index c7fc5ee455010130aae2822175457e96a3ba7866..30a202cc9cc1982369083ef3d7d2d28c12fdabd9 100644 (file)
@@ -771,6 +771,22 @@ static bool shadow_copy2_strip_snapshot(TALLOC_CTX *mem_ctx,
                                        NULL);
 }
 
+static bool shadow_copy2_strip_snapshot_converted(TALLOC_CTX *mem_ctx,
+                                       struct vfs_handle_struct *handle,
+                                       const char *orig_name,
+                                       time_t *ptimestamp,
+                                       char **pstripped,
+                                       bool *is_converted)
+{
+       return shadow_copy2_strip_snapshot_internal(mem_ctx,
+                                       handle,
+                                       orig_name,
+                                       ptimestamp,
+                                       pstripped,
+                                       NULL,
+                                       is_converted);
+}
+
 static char *shadow_copy2_find_mount_point(TALLOC_CTX *mem_ctx,
                                           vfs_handle_struct *handle)
 {