git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e86972d
)
shadow_copy2: disable "snapdir:crossmountpoints" if the snapdir is absolute.
author
Michael Adam
<obnox@samba.org>
Thu, 30 May 2013 11:19:50 +0000
(13:19 +0200)
committer
Karolin Seeger
<kseeger@samba.org>
Mon, 13 Jan 2014 09:15:53 +0000
(10:15 +0100)
Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
(cherry picked from commit
1e887fcda097b93a879df726f2b7c2c8d3c4cf54
)
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 069447358ccda10ef2b184a0334843896a57db35..adcc855320d95fe8f569484335de8fe7e41cd79a 100644
(file)
--- 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,