From 7b96fd92de79f367bfa8591becdb30340a4a26e7 Mon Sep 17 00:00:00 2001 From: Vijaikumar M Date: Mon, 19 May 2014 13:09:07 +0530 Subject: cli: 'Snapshot Volume: yes/no' for volume info needs to be removed With initial design where the snap volume used to be displayed in gluster volume info, we used "Snap Volume: yes/on" to distinguish the volume whether its a snap volume or the original volume. But with new design the snap volumes are not listed in the volume info, hence this entry (snap volume:) doesn't make sense to show. Change-Id: Ic5b9948bf4ef74e89a611742c74a8989cb406866 BUG: 1098910 Signed-off-by: Vijaikumar M Reviewed-on: http://review.gluster.org/7794 Reviewed-by: Avra Sengupta Reviewed-by: Sachin Pandit Tested-by: Gluster Build System Reviewed-by: Rajesh Joseph Reviewed-by: Krishnan Parthasarathi Tested-by: Krishnan Parthasarathi --- cli/src/cli-xml-output.c | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'cli/src/cli-xml-output.c') diff --git a/cli/src/cli-xml-output.c b/cli/src/cli-xml-output.c index 5434dd4069a..b16c238f7fc 100644 --- a/cli/src/cli-xml-output.c +++ b/cli/src/cli-xml-output.c @@ -2535,7 +2535,6 @@ cli_xml_output_vol_info (cli_local_t *local, dict_t *dict) int j = 1; char *caps = NULL; int k __attribute__((unused)) = 0; - char *snap_volume = NULL; ret = dict_get_int32 (dict, "count", &count); if (ret) @@ -2577,18 +2576,6 @@ cli_xml_output_vol_info (cli_local_t *local, dict_t *dict) "%d", status); XML_RET_CHECK_AND_GOTO (ret, out); - memset (key, 0, sizeof (key)); - snprintf (key, sizeof (key), "volume%d.snap_volume", i); - ret = dict_get_str (dict, key, &snap_volume); - if (ret) - goto out; - if (snap_volume) { - ret = xmlTextWriterWriteFormatElement (local->writer, - (xmlChar *)"snapVol", - "%s", snap_volume); - XML_RET_CHECK_AND_GOTO (ret, out); - } - ret =xmlTextWriterWriteFormatElement (local->writer, (xmlChar *)"statusStr", "%s", cli_vol_status_str[status]); -- cgit