summaryrefslogtreecommitdiffstats
path: root/cli/src
diff options
context:
space:
mode:
authorndarshan <dnarayan@redhat.com>2013-12-27 03:11:19 -0500
committerVijay Bellur <vbellur@redhat.com>2014-01-16 00:04:26 -0800
commitde557c602c8f0480686c4d560f012924ee0de936 (patch)
tree5b13a8ca12e97428ac0029ea47d3b6faba6a1c39 /cli/src
parentdd1f4a480511c4785d004c06dd9c41ba54f05143 (diff)
cli: Addition of new child elements under brick in volume info xml.
Added new child elements; name and hostUuid under brick in volume info xml where name and host uuid of the bricks are stored. This does not break backward compatibility as the old value under brick is not removed. Change-Id: Ib9e388889c8dc0c7cd34dcc1871a59003f982f36 Signed-off-by: ndarshan <dnarayan@redhat.com> Reviewed-on: http://review.gluster.org/6604 Reviewed-by: Kaushal M <kaushal@redhat.com> Tested-by: Gluster Build System <jenkins@build.gluster.com>
Diffstat (limited to 'cli/src')
-rw-r--r--cli/src/cli-xml-output.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/cli/src/cli-xml-output.c b/cli/src/cli-xml-output.c
index 69fed1bc9..886c372dc 100644
--- a/cli/src/cli-xml-output.c
+++ b/cli/src/cli-xml-output.c
@@ -2715,6 +2715,16 @@ cli_xml_output_vol_info (cli_local_t *local, dict_t *dict)
(local->writer, "%s", brick);
XML_RET_CHECK_AND_GOTO (ret, out);
+ ret = xmlTextWriterWriteFormatElement
+ (local->writer, (xmlChar *)"name", "%s",
+ brick);
+ XML_RET_CHECK_AND_GOTO (ret, out);
+
+ ret = xmlTextWriterWriteFormatElement
+ (local->writer, (xmlChar *)"hostUuid", "%s",
+ uuid);
+ XML_RET_CHECK_AND_GOTO (ret, out);
+
/* </brick> */
ret = xmlTextWriterEndElement (local->writer);
XML_RET_CHECK_AND_GOTO (ret, out);