diff options
author | Volker Lendecke <vl@samba.org> | 2012-10-17 12:11:37 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2014-06-27 06:49:10 +0200 |
commit | 1d488270a116b3140de1355c1492aa2652a57e08 (patch) | |
tree | 56569ea8e8428b2669acc9a1dc9e2c53c78f9df1 | |
parent | 87cad882308a00330bdcba67bf048cdb0f7ab9d9 (diff) | |
download | samba-1d488270a116b3140de1355c1492aa2652a57e08.tar.gz samba-1d488270a116b3140de1355c1492aa2652a57e08.tar.xz samba-1d488270a116b3140de1355c1492aa2652a57e08.zip |
s3-shadow-copy2: Add more debugs
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Christof Schmitt <cs@samba.org>
-rw-r--r-- | source3/modules/vfs_shadow_copy2.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source3/modules/vfs_shadow_copy2.c b/source3/modules/vfs_shadow_copy2.c index e7a8a9d137..30f67e2782 100644 --- a/source3/modules/vfs_shadow_copy2.c +++ b/source3/modules/vfs_shadow_copy2.c @@ -1673,21 +1673,30 @@ static int shadow_copy2_get_real_filename(struct vfs_handle_struct *handle, int saved_errno; char *conv; + DEBUG(10, ("shadow_copy2_get_real_filename called for path=[%s], " + "name=[%s]\n", path, name)); + if (!shadow_copy2_strip_snapshot(talloc_tos(), handle, path, ×tamp, &stripped)) { + DEBUG(10, ("shadow_copy2_strip_snapshot failed\n")); return -1; } if (timestamp == 0) { + DEBUG(10, ("timestamp == 0\n")); return SMB_VFS_NEXT_GET_REAL_FILENAME(handle, path, name, mem_ctx, found_name); } conv = shadow_copy2_convert(talloc_tos(), handle, stripped, timestamp); TALLOC_FREE(stripped); if (conv == NULL) { + DEBUG(10, ("shadow_copy2_convert failed\n")); return -1; } + DEBUG(10, ("Calling NEXT_GET_REAL_FILE_NAME for conv=[%s], " + "name=[%s]\n", conv, name)); ret = SMB_VFS_NEXT_GET_REAL_FILENAME(handle, conv, name, mem_ctx, found_name); + DEBUG(10, ("NEXT_REAL_FILE_NAME returned %d\n", (int)ret)); saved_errno = errno; TALLOC_FREE(conv); errno = saved_errno; |