summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2013-05-23 23:59:49 +0200
committerAndrew Bartlett <abartlet@samba.org>2013-10-05 09:20:53 +1300
commit5b494b3dea559f632d57c9d33172e46e459e852f (patch)
treea4a3e75fdaac6dde16b1527ae628f8c384c6aa5b
parent9361824ddd291cb0e543a5a0829246831fcb9e84 (diff)
downloadsamba-5b494b3dea559f632d57c9d33172e46e459e852f.tar.gz
samba-5b494b3dea559f632d57c9d33172e46e459e852f.tar.bz2
samba-5b494b3dea559f632d57c9d33172e46e459e852f.zip
shadow_copy2: add header comment explaining have_snapdir()
Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
-rw-r--r--source3/modules/vfs_shadow_copy2.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/modules/vfs_shadow_copy2.c b/source3/modules/vfs_shadow_copy2.c
index 8bbb7b824c..932f93f693 100644
--- a/source3/modules/vfs_shadow_copy2.c
+++ b/source3/modules/vfs_shadow_copy2.c
@@ -963,6 +963,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)
{