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)
committerKarolin 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 c4f9954ebb04da94a5bcd2cb328fb2fbaf9fa062)

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);