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>
This commit is contained in:
parent
dd1f4a4805
commit
de557c602c
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user