shadow_copy2: add header comment explaining have_snapdir()
authorMichael Adam <obnox@samba.org>
Thu, 23 May 2013 21:59:49 +0000 (23:59 +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 5b494b3dea559f632d57c9d33172e46e459e852f)

source3/modules/vfs_shadow_copy2.c

index e421d0fd1cdb4ea35b45f1b8e596adb3fbb0ae04..204c9695aa633bd5fd779d8bc3eb895496eaac0c 100644 (file)
@@ -965,6 +965,12 @@ done:
        return result;
 }
 
+/**
+ * Check whether a given directory contains a
+ * snapshot directory as direct subdirectory.
+ * If yes, return the path of the snapshot-subdir,
+ * otherwise return NULL.
+ */
 static char *have_snapdir(struct vfs_handle_struct *handle,
                          const char *path)
 {