diff options
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-utils.c')
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-utils.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-utils.c b/xlators/mgmt/glusterd/src/glusterd-utils.c index 9b6d7f250..fd8f5e774 100644 --- a/xlators/mgmt/glusterd/src/glusterd-utils.c +++ b/xlators/mgmt/glusterd/src/glusterd-utils.c @@ -494,6 +494,9 @@ glusterd_volinfo_dup (glusterd_volinfo_t *volinfo, new_volinfo->nfs_transport_type = volinfo->nfs_transport_type; new_volinfo->brick_count = volinfo->brick_count; + dict_copy (volinfo->dict, new_volinfo->dict); + gd_update_volume_op_versions (new_volinfo); + /* For now, actual volume's username and password itself is used for authentication of trusted clients. If its not working, generate new username and passowd (uuid-generate) and use. @@ -1508,8 +1511,9 @@ glusterd_snap_volume_start_glusterfs (glusterd_volinfo_t *volinfo, runner_argprintf (&runner, "--log-file=%s", valgrind_logfile); } - snprintf (volfile, PATH_MAX, "%s.%s.%s", snap_volinfo->volname, - brickinfo->hostname, exp_path); + snprintf (volfile, PATH_MAX, "%s/snaps/%s/%s.%s.%s", + volinfo->volname, snap_volinfo->volname, + snap_volinfo->volname, brickinfo->hostname, exp_path); if (volinfo->logdir) { snprintf (logfile, PATH_MAX, "%s/%s.log", |