From 16218e529a7b38434d3618b551de1496456ee580 Mon Sep 17 00:00:00 2001 From: ndarshan Date: Fri, 27 Dec 2013 03:11:19 -0500 Subject: 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: I95b690d90fc5df40aa62bc76621afa18f7c6073b Signed-off-by: ndarshan Reviewed-on: http://review.gluster.org/6604 Reviewed-by: Kaushal M Tested-by: Gluster Build System Reviewed-on: http://review.gluster.org/6721 Reviewed-by: Vijay Bellur --- cli/src/cli-xml-output.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/cli/src/cli-xml-output.c b/cli/src/cli-xml-output.c index cca51a6a0..1a418452b 100644 --- a/cli/src/cli-xml-output.c +++ b/cli/src/cli-xml-output.c @@ -2714,6 +2714,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); + /* */ ret = xmlTextWriterEndElement (local->writer); XML_RET_CHECK_AND_GOTO (ret, out); -- cgit