shadow_copy2: disable "snapdir:crossmountpoints" if the snapdir is absolute.
authorMichael Adam <obnox@samba.org>
Thu, 30 May 2013 11:19:50 +0000 (13:19 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 4 Oct 2013 20:21:07 +0000 (09:21 +1300)
Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source3/modules/vfs_shadow_copy2.c

index 069447358ccda10ef2b184a0334843896a57db35..adcc855320d95fe8f569484335de8fe7e41cd79a 100644 (file)
@@ -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,