From eae534f01cae6ea6fa875bae15f11dd0006b406e Mon Sep 17 00:00:00 2001 From: Ralph Boehme Date: Thu, 22 Nov 2018 11:04:54 +0100 Subject: [PATCH] vfs_shadow_copy2: add shadow_copy2_strip_snapshot_converted 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 Reviewed-by: Jeremy Allison (cherry picked from commit 14d6488d355e960ab02e72c414cbbc316f1db718) --- source3/modules/vfs_shadow_copy2.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/source3/modules/vfs_shadow_copy2.c b/source3/modules/vfs_shadow_copy2.c index 604423d6d80..ebda08678ea 100644 --- a/source3/modules/vfs_shadow_copy2.c +++ b/source3/modules/vfs_shadow_copy2.c @@ -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) { -- 2.47.2