summaryrefslogtreecommitdiffstats
path: root/cli/src/cli-cmd-volume.c
diff options
context:
space:
mode:
authorSusant Palai <spalai@redhat.com>2014-02-28 17:19:43 +0000
committerAnand Avati <avati@redhat.com>2014-03-01 19:01:32 -0800
commitee150bd45e4976bc31d1660102d487982b0ce83d (patch)
treea0f71a93847ef36fadaa3aa28b7ed93ecced0277 /cli/src/cli-cmd-volume.c
parentd11d3f877d37f95a915fbf5f894f23f8f88b1a18 (diff)
cli: Rectify grammar in the "Usage" of "rebalance" command
Problem: Currently Usage of rebalance command is : " Usage: volume rebalance <VOLNAME> [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 <spalai@redhat.com> Reviewed-on: http://review.gluster.org/7172 Reviewed-by: Anand Avati <avati@redhat.com> Tested-by: Anand Avati <avati@redhat.com>
Diffstat (limited to 'cli/src/cli-cmd-volume.c')
-rw-r--r--cli/src/cli-cmd-volume.c2
1 files changed, 1 insertions, 1 deletions
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 <VOLNAME>"},
- { "volume rebalance <VOLNAME> [fix-layout] {start|stop|status} [force]",
+ { "volume rebalance <VOLNAME> {{fix-layout start} | {start [force]|stop|status}}",
cli_cmd_volume_defrag_cbk,
"rebalance operations"},