diff options
author | Mohammed Rafi KC <rkavunga@redhat.com> | 2015-05-02 17:31:07 +0530 |
---|---|---|
committer | Vijay Bellur <vbellur@redhat.com> | 2015-05-09 10:26:36 -0700 |
commit | ec055e1e6908ac829efc103deb548cc0a774cf23 (patch) | |
tree | f16809b02ecf9c4cc17785b2a4a8e705f8101a98 /cli/src/cli-xml-output.c | |
parent | c5866f0575216727e38af3500b32e81e1efc72b7 (diff) |
cli/tiering: Enhance cli output for tiering
back port of http://review.gluster.org/10284
Fix for handling cli output for attach-tier and
detach-tier
>Change-Id: I4d17f4b09612754fe1b8cec6c2e14927029b9678
>BUG: 1211562
>Signed-off-by: Mohammed Rafi KC <rkavunga@redhat.com>
>Reviewed-on: http://review.gluster.org/10284
>Reviewed-by: Dan Lambright <dlambrig@redhat.com>
>Tested-by: Gluster Build System <jenkins@build.gluster.com>
>Tested-by: NetBSD Build System
>Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Change-Id: Ic30c8f0a104d89bf98f5d0069937a34674ee3f2d
BUG: 1220052
Signed-off-by: Mohammed Rafi KC <rkavunga@redhat.com>
Reviewed-on: http://review.gluster.org/10713
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'cli/src/cli-xml-output.c')
-rw-r--r-- | cli/src/cli-xml-output.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/cli/src/cli-xml-output.c b/cli/src/cli-xml-output.c index f9013ed2726..d41aebc8cad 100644 --- a/cli/src/cli-xml-output.c +++ b/cli/src/cli-xml-output.c @@ -3371,8 +3371,10 @@ out: } int -cli_xml_output_vol_remove_brick (gf_boolean_t status_op, dict_t *dict, - int op_ret, int op_errno, char *op_errstr) +cli_xml_output_vol_remove_brick_detach_tier (gf_boolean_t status_op, + dict_t *dict, int op_ret, + int op_errno, char *op_errstr, + const char *op) { #if (HAVE_LIB_XML) int ret = -1; @@ -3388,8 +3390,7 @@ cli_xml_output_vol_remove_brick (gf_boolean_t status_op, dict_t *dict, if (ret) goto out; - /* <volRemoveBrick> */ - ret = xmlTextWriterStartElement (writer, (xmlChar *)"volRemoveBrick"); + ret = xmlTextWriterStartElement (writer, (xmlChar *) op); XML_RET_CHECK_AND_GOTO (ret, out); ret = dict_get_str (dict, GF_REMOVE_BRICK_TID_KEY, &task_id_str); @@ -3407,7 +3408,6 @@ cli_xml_output_vol_remove_brick (gf_boolean_t status_op, dict_t *dict, goto out; } - /* </volRemoveBrick> */ ret = xmlTextWriterEndElement (writer); XML_RET_CHECK_AND_GOTO (ret, out); |