diff options
author | Mohammed Rafi KC <rkavunga@redhat.com> | 2015-03-31 10:54:10 +0530 |
---|---|---|
committer | Rajesh Joseph <rjoseph@redhat.com> | 2016-07-29 03:09:41 -0700 |
commit | 8ef81bf02c779e7d126a654bde28d319d0fa823d (patch) | |
tree | ca2d6e5e9b6b5415c49d765f2b853d7413e73d2d /xlators/mgmt/glusterd/src | |
parent | 6c43efbb6b01726e450b71d274c3b45b56cc7916 (diff) |
Snapshot/xml:xml output for snapshot clone
Snapshot clone is used to create a regular volume from snapshot.
Currently snapshot clone is not supporting xml outout.
This change introduce a xml output for snapshot clone command
Change-Id: I417b480d36f9d84ee088004999b041c9619edd50
BUG: 1207604
Signed-off-by: Mohammed Rafi KC <rkavunga@redhat.com>
Reviewed-on: http://review.gluster.org/10065
Reviewed-by: Avra Sengupta <asengupt@redhat.com>
Tested-by: Avra Sengupta <asengupt@redhat.com>
Smoke: Gluster Build System <jenkins@build.gluster.org>
NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org>
CentOS-regression: Gluster Build System <jenkins@build.gluster.org>
Reviewed-by: Rajesh Joseph <rjoseph@redhat.com>
Diffstat (limited to 'xlators/mgmt/glusterd/src')
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-snapshot.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-snapshot.c b/xlators/mgmt/glusterd/src/glusterd-snapshot.c index 5d5bdead416..e38395e1eb3 100644 --- a/xlators/mgmt/glusterd/src/glusterd-snapshot.c +++ b/xlators/mgmt/glusterd/src/glusterd-snapshot.c @@ -6768,7 +6768,7 @@ glusterd_snapshot_clone_commit (dict_t *dict, char **op_errstr, cds_list_del_init (&snap_vol->vol_list); ret = dict_set_dynstr_with_alloc (rsp_dict, "snapuuid", - uuid_utoa (snap->snap_id)); + uuid_utoa (snap_vol->volume_id)); if (ret) { gf_msg (this->name, GF_LOG_ERROR, 0, GD_MSG_DICT_SET_FAILED, "Failed to set snap " |