shadow_copy2: log resulting config at the end of shadow_copy2_connect()
authorMichael Adam <obnox@samba.org>
Fri, 31 May 2013 15:17:27 +0000 (17:17 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 4 Oct 2013 20:21:14 +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 f3be5fefa316fd1ce60ee8a56b91dfe540d0bb7b..4c8ee25678f032fd227861943b58b116440b16e4 100644 (file)
@@ -1775,6 +1775,35 @@ static int shadow_copy2_connect(struct vfs_handle_struct *handle,
                }
        }
 
+       DEBUG(10, ("shadow_copy2_connect: configuration:\n"
+                  "  share root: '%s'\n"
+                  "  basedir: '%s'\n"
+                  "  mountpoint: '%s'\n"
+                  "  rel share root: '%s'\n"
+                  "  snapdir: '%s'\n"
+                  "  snapshot base path: '%s'\n"
+                  "  format: '%s'\n"
+                  "  use sscanf: %s\n"
+                  "  snapdirs everywhere: %s\n"
+                  "  cross mountpoints: %s\n"
+                  "  fix inodes: %s\n"
+                  "  sort order: %s\n"
+                  "",
+                  handle->conn->connectpath,
+                  config->basedir,
+                  config->mount_point,
+                  config->rel_connectpath,
+                  config->snapdir,
+                  config->snapshot_basepath,
+                  config->gmt_format,
+                  config->use_sscanf ? "yes" : "no",
+                  config->snapdirseverywhere ? "yes" : "no",
+                  config->crossmountpoints ? "yes" : "no",
+                  config->fixinodes ? "yes" : "no",
+                  config->sort_order
+                  ));
+
+
        SMB_VFS_HANDLE_SET_DATA(handle, config,
                                NULL, struct shadow_copy2_config,
                                return -1);