git.samba.org
/
mat
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1ecef57
)
shadow_copy2: introduce the bool "snapdir_absolute" in the config.
author
Michael Adam
<obnox@samba.org>
Wed, 29 May 2013 15:10:51 +0000
(17:10 +0200)
committer
Andrew Bartlett
<abartlet@samba.org>
Fri, 4 Oct 2013 20:21:05 +0000
(09:21 +1300)
Not exposed but to be used internally.
Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source3/modules/vfs_shadow_copy2.c
patch
|
blob
|
history
diff --git
a/source3/modules/vfs_shadow_copy2.c
b/source3/modules/vfs_shadow_copy2.c
index d5b16536c33ecc215a35268920f079eda2697c6f..069447358ccda10ef2b184a0334843896a57db35 100644
(file)
--- a/
source3/modules/vfs_shadow_copy2.c
+++ b/
source3/modules/vfs_shadow_copy2.c
@@
-1646,6
+1646,16
@@
static int shadow_copy2_connect(struct vfs_handle_struct *handle,
return -1;
}
+ if (config->snapdir[0] == '/') {
+ config->snapdir_absolute = true;
+ if (config->snapdirseverywhere == true) {
+ DEBUG(1, (__location__ " Warning: An absolute snapdir "
+ "is incompatible with 'snapdirseverywhere', "
+ "setting 'snapdirseverywhere' to false.\n"));
+ config->snapdirseverywhere = false;
+ }
+ }
+
SMB_VFS_HANDLE_SET_DATA(handle, config,
NULL, struct shadow_copy2_config,
return -1);