diff options
author | Michael Adam <obnox@samba.org> | 2013-05-29 17:10:51 +0200 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2013-10-05 09:21:05 +1300 |
commit | 843954989cbec6640d2565d0d23a48f296740a23 (patch) | |
tree | 3ce0b3471b81fc75b0b712e5485ab3d809fad88f | |
parent | 1ecef5743583cf617f5506bc2fca3baa70cfb9b3 (diff) | |
download | samba-843954989cbec6640d2565d0d23a48f296740a23.tar.gz samba-843954989cbec6640d2565d0d23a48f296740a23.tar.bz2 samba-843954989cbec6640d2565d0d23a48f296740a23.zip |
shadow_copy2: introduce the bool "snapdir_absolute" in the config.
Not exposed but to be used internally.
Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
-rw-r--r-- | source3/modules/vfs_shadow_copy2.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/source3/modules/vfs_shadow_copy2.c b/source3/modules/vfs_shadow_copy2.c index d5b16536c3..069447358c 100644 --- 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); |