summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2013-05-30 13:19:50 +0200
committerAndrew Bartlett <abartlet@samba.org>2013-10-05 09:21:07 +1300
commit1e887fcda097b93a879df726f2b7c2c8d3c4cf54 (patch)
treee5481c1f2d0fdf066b9ace3ce73f899e4a61762e /source3
parent843954989cbec6640d2565d0d23a48f296740a23 (diff)
downloadsamba-1e887fcda097b93a879df726f2b7c2c8d3c4cf54.tar.gz
samba-1e887fcda097b93a879df726f2b7c2c8d3c4cf54.tar.bz2
samba-1e887fcda097b93a879df726f2b7c2c8d3c4cf54.zip
shadow_copy2: disable "snapdir:crossmountpoints" if the snapdir is absolute.
Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source3')
-rw-r--r--source3/modules/vfs_shadow_copy2.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/source3/modules/vfs_shadow_copy2.c b/source3/modules/vfs_shadow_copy2.c
index 069447358c..adcc855320 100644
--- a/source3/modules/vfs_shadow_copy2.c
+++ b/source3/modules/vfs_shadow_copy2.c
@@ -1654,6 +1654,13 @@ static int shadow_copy2_connect(struct vfs_handle_struct *handle,
"setting 'snapdirseverywhere' to false.\n"));
config->snapdirseverywhere = false;
}
+
+ if (config->crossmountpoints == true) {
+ DEBUG(1, (__location__ " Warning: 'crossmountpoints' "
+ "is not supported with an absolute snapdir. "
+ "Disabling it.\n"));
+ config->crossmountpoints = false;
+ }
}
SMB_VFS_HANDLE_SET_DATA(handle, config,