shadow_copy2: add comment header describing shadow_copy2_strip_snapshot()
authorMichael Adam <obnox@samba.org>
Thu, 23 May 2013 21:32:15 +0000 (23:32 +0200)
committerKarolin Seeger <kseeger@samba.org>
Mon, 13 Jan 2014 09:17:20 +0000 (10:17 +0100)
Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
(cherry picked from commit 9361824ddd291cb0e543a5a0829246831fcb9e84)

source3/modules/vfs_shadow_copy2.c

index f3931d36b490ca826dc3e6e0027c6f299286e71a..e421d0fd1cdb4ea35b45f1b8e596adb3fbb0ae04 100644 (file)
@@ -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,