From cd7951aa31ae4bbdf35fc6d1f2466636844b889d Mon Sep 17 00:00:00 2001 From: Aravinda VK Date: Fri, 30 Aug 2013 14:37:03 +0530 Subject: cli: Add statusStr xml tag to task list and rebalance/remove brick status New xml tag statusStr added to following gluster cli commands gluster volume status all --xml (For Task status) gluster volume rebalance status --xml gluster volume remove-brick status --xml Example(volume status all): Rebalance 82d8d122-8738-4144-8507-d93fc98b61df 3 completed Example(volume rebalance status) localhost 0 0 0 0 3 completed Also modified task status as string instead of showing number in gluster volume status all Example: Status of volume: gv1 Gluster process Port Online Pid ------------------------------------------------------------------------------ Brick sumne.sumne:/gfs/b1 49154 Y 15489 Brick sumne.sumne:/gfs/b2 49155 Y 15493 NFS Server on localhost N/A N 15913 Task ID Status ---- -- ------ Rebalance 82d8d122-8738-4144-8507-d93fc98b61df completed BUG: 1003521 Change-Id: Ib283016af4c18132fb13fb33d44075782d77823c Signed-off-by: Aravinda VK Reviewed-on: http://review.gluster.org/5739 Reviewed-by: Kaushal M Tested-by: Gluster Build System --- cli/src/cli.h | 1 + 1 file changed, 1 insertion(+) (limited to 'cli/src/cli.h') diff --git a/cli/src/cli.h b/cli/src/cli.h index 9b3afff36..36f3c13be 100644 --- a/cli/src/cli.h +++ b/cli/src/cli.h @@ -66,6 +66,7 @@ struct cli_cmd; extern char *cli_vol_type_str[]; extern char *cli_vol_status_str[]; +extern char *cli_vol_task_status_str[]; typedef int (cli_cmd_cbk_t)(struct cli_state *state, struct cli_cmd_word *word, -- cgit