summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt/glusterd/src/glusterd-utils.c
diff options
context:
space:
mode:
authorRaghavendra Bhat <raghavendra@redhat.com>2013-10-23 14:07:29 +0530
committershishir gowda <sgowda@redhat.com>2013-11-15 12:38:59 +0530
commit8b5a3ef2f5363abd4e4d8d49c067cba8e4df8fdd (patch)
tree4595bdfc3acb0940bca4aa0a324138ad28c47b9c /xlators/mgmt/glusterd/src/glusterd-utils.c
parentda3a265c36b1326405dafce98b29d7c72001a7e9 (diff)
mgmt/glusterd: changes to start the brick process of the snap volume
Change-Id: I54db2fa67ebb6b57629f9536c296fbae07a1d159 Signed-off-by: Raghavendra Bhat <raghavendra@redhat.com>
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-utils.c')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-utils.c8
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",