diff options
author | Kaushal M <kaushal@redhat.com> | 2012-09-06 13:08:00 +0530 |
---|---|---|
committer | Anand Avati <avati@redhat.com> | 2012-10-11 16:34:16 -0700 |
commit | f1f3d1c62d1e066c065f250caa0fc005b66dba37 (patch) | |
tree | c8956a9dd3c4df49ad4500f84b3333c3cb8c410e /cli/src/cli.c | |
parent | 6be13228c45188b104ffde22cee36fb24db8484d (diff) |
cli: Changes and enhancements to XML output
This patch contains several xml related changes which fix some bugs and
introduce xml output for commands which were missing it. These include,
* XML output for rebalance & remove-brick status
* XML output for replace-brick
* XML output for 'volume status all' in on xml document
* proper XML output for "volume {create|start|stop|delete}"
* type & status of a volume in 'volume info' is now given as a string as well
This patch also cleans up the '#if (HAVE_LIB_XML)' sections from the code-base,
so that it is not littered around.
Change-Id: I5bb022adf0fedf7e3ead92b4b79bfa02b0b5fef5
BUG: 828131
Signed-off-by: Kaushal M <kaushal@redhat.com>
Reviewed-on: http://review.gluster.org/3869
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Anand Avati <avati@redhat.com>
Diffstat (limited to 'cli/src/cli.c')
-rw-r--r-- | cli/src/cli.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cli/src/cli.c b/cli/src/cli.c index 75f2ed343..416cb50bc 100644 --- a/cli/src/cli.c +++ b/cli/src/cli.c @@ -294,7 +294,11 @@ cli_opt_parse (char *opt, struct cli_state *state) } if (strcmp (opt, "xml") == 0) { +#if (HAVE_LIB_XML) state->mode |= GLUSTER_MODE_XML; +#else + cli_err ("XML output not supported. Ignoring '--xml' option"); +#endif return 0; } |