summaryrefslogtreecommitdiff
path: root/source3/modules
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2013-05-29 23:57:30 +0200
committerAndrew Bartlett <abartlet@samba.org>2013-10-05 09:21:25 +1300
commitafcb84e69f46671030710bdda1c8798235b9ace7 (patch)
treeb26c145e55b80f8a5eb6f93afa19bca12683827e /source3/modules
parent3d053b1ab3e0b918509e06086a54834a9ae9cdb7 (diff)
downloadsamba-afcb84e69f46671030710bdda1c8798235b9ace7.tar.gz
samba-afcb84e69f46671030710bdda1c8798235b9ace7.tar.bz2
samba-afcb84e69f46671030710bdda1c8798235b9ace7.zip
shadow_copy2: add some debug to shadow_copy2_strip_snapshot()
Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source3/modules')
-rw-r--r--source3/modules/vfs_shadow_copy2.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/source3/modules/vfs_shadow_copy2.c b/source3/modules/vfs_shadow_copy2.c
index ade8c28a12..17eb8ba6f9 100644
--- a/source3/modules/vfs_shadow_copy2.c
+++ b/source3/modules/vfs_shadow_copy2.c
@@ -311,6 +311,8 @@ static bool shadow_copy2_strip_snapshot(TALLOC_CTX *mem_ctx,
SMB_VFS_HANDLE_GET_DATA(handle, config, struct shadow_copy2_config,
return false);
+ DEBUG(10, (__location__ ": enter path '%s'\n", name));
+
p = strstr_m(name, "@GMT-");
if (p == NULL) {
goto no_snapshot;
@@ -366,11 +368,19 @@ static bool shadow_copy2_strip_snapshot(TALLOC_CTX *mem_ctx,
return false;
}
+ DEBUG(10, (__location__ ": snapdirseverywhere mode.\n"
+ "path '%s'.\n"
+ "insert string '%s'\n", name, insert));
+
have_insert = (strstr(name, insert+1) != NULL);
- TALLOC_FREE(insert);
if (have_insert) {
+ DEBUG(10, (__location__ ": insert string '%s' found in "
+ "path '%s' found in snapdirseverywhere mode "
+ "==> already converted\n", insert, name));
+ TALLOC_FREE(insert);
goto no_snapshot;
}
+ TALLOC_FREE(insert);
}
if (pstripped != NULL) {