From ee150bd45e4976bc31d1660102d487982b0ce83d Mon Sep 17 00:00:00 2001 From: Susant Palai Date: Fri, 28 Feb 2014 17:19:43 +0000 Subject: cli: Rectify grammar in the "Usage" of "rebalance" command Problem: Currently Usage of rebalance command is : " Usage: volume rebalance [fix-layout] {start|stop|status} [force] " 1) "force" option can be only used with "start" . 2) "fix-layout" option can be only used with "start" But the current usage says "fix-layout" operation can be stopped and can get the status of "fix-layout" operation and also "stop" ,"status" operation can be used with "force" option which is not correct. Change-Id: I48e6c64c124f5803c8f09c78df0e14dc2b6a348a BUG: 1071411 Signed-off-by: Susant Palai Reviewed-on: http://review.gluster.org/7172 Reviewed-by: Anand Avati Tested-by: Anand Avati --- cli/src/cli-cmd-volume.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cli') diff --git a/cli/src/cli-cmd-volume.c b/cli/src/cli-cmd-volume.c index 98e384f2f64..fc3b7229a21 100644 --- a/cli/src/cli-cmd-volume.c +++ b/cli/src/cli-cmd-volume.c @@ -2296,7 +2296,7 @@ struct cli_cmd volume_cmds[] = { cli_cmd_volume_remove_brick_cbk, "remove brick from volume "}, - { "volume rebalance [fix-layout] {start|stop|status} [force]", + { "volume rebalance {{fix-layout start} | {start [force]|stop|status}}", cli_cmd_volume_defrag_cbk, "rebalance operations"}, -- cgit