summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2013-05-23 23:32:15 +0200
committerAndrew Bartlett <abartlet@samba.org>2013-10-05 09:20:51 +1300
commit9361824ddd291cb0e543a5a0829246831fcb9e84 (patch)
tree77053626397aaa55e514e6d2a3c1f230b8389119 /source3
parent01cb88977da5bc44443407b100345531d047c77c (diff)
downloadsamba-9361824ddd291cb0e543a5a0829246831fcb9e84.tar.gz
samba-9361824ddd291cb0e543a5a0829246831fcb9e84.tar.bz2
samba-9361824ddd291cb0e543a5a0829246831fcb9e84.zip
shadow_copy2: add comment header describing shadow_copy2_strip_snapshot()
Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source3')
-rw-r--r--source3/modules/vfs_shadow_copy2.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/modules/vfs_shadow_copy2.c b/source3/modules/vfs_shadow_copy2.c
index dd66010cfb..8bbb7b824c 100644
--- a/source3/modules/vfs_shadow_copy2.c
+++ b/source3/modules/vfs_shadow_copy2.c
@@ -186,6 +186,11 @@ static char *shadow_copy2_insert_string(TALLOC_CTX *mem_ctx,
snaptime_string);
}
+/**
+ * Strip a snapshot component from an filename as
+ * handed in via the smb layer.
+ * Returns the parsed timestamp and the stripped filename.
+ */
static bool shadow_copy2_strip_snapshot(TALLOC_CTX *mem_ctx,
struct vfs_handle_struct *handle,
const char *name,