summaryrefslogtreecommitdiffstats
path: root/cli
diff options
context:
space:
mode:
authorGaurav Kumar Garg <ggarg@redhat.com>2015-04-06 15:23:55 +0530
committerKaushal M <kaushal@redhat.com>2015-04-09 04:39:20 +0000
commit61afe3a0c87f11fa685db1e71867d80c533f42e0 (patch)
tree9533fa2a313526dad92004705d6fbbac17c9b433 /cli
parenta7f1d08b8f0bdf8d251590d6f7e4acc46f2486b4 (diff)
cli: gluster volume help should give sufficient information for bitrot
Previously command "gluster volume help | grep bitrot" was not giving sufficient information for bitrot. With this fix command "gluster volume help" will give appropriate information for bitrot. Change-Id: Ic385c760d4ecbfb16ff5d90dba8940b3616035e5 BUG: 1207532 Signed-off-by: Gaurav Kumar Garg <ggarg@redhat.com> Reviewed-on: http://review.gluster.org/10133 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Kaushal M <kaushal@redhat.com>
Diffstat (limited to 'cli')
-rw-r--r--cli/src/cli-cmd-volume.c25
1 files changed, 18 insertions, 7 deletions
diff --git a/cli/src/cli-cmd-volume.c b/cli/src/cli-cmd-volume.c
index 9c61c3f541f..ae091b3182e 100644
--- a/cli/src/cli-cmd-volume.c
+++ b/cli/src/cli-cmd-volume.c
@@ -2678,14 +2678,25 @@ struct cli_cmd volume_cmds[] = {
cli_cmd_volume_getopt_cbk,
"Get the value of the all options or given option for volume <VOLNAME>"
},
- { "volume bitrot <volname> {enable|disable} |\n"
- "volume bitrot <volname> {scrub-throttle frozen|lazy|normal"
- "|aggressive} |\n"
- "volume bitrot <volname> {scrub-frequency daily|weekly|biweekly"
- "|monthly} |\n"
- "volume bitrot <volname> {scrub pause|resume}",
+ {"volume bitrot <VOLNAME> {enable|disable}",
+ cli_cmd_bitrot_cbk,
+ "Enable/disable bitrot for volume <VOLNAME>"
+ },
+ {"volume bitrot <VOLNAME> {scrub-throttle frozen|lazy|normal"
+ "|aggressive}",
+ cli_cmd_bitrot_cbk,
+ "Scrub-throttle value is a measure of how fast or slow the scrubber "
+ "scrubs the filesystem for volume <VOLNAME>"
+ },
+ {"volume bitrot <VOLNAME> {scrub-frequency daily|weekly|biweekly"
+ "|monthly",
+ cli_cmd_bitrot_cbk,
+ "Scrub frequency for volume <VOLNAME>"
+ },
+ {"volume bitrot <VOLNAME> {scrub pause|resume}",
cli_cmd_bitrot_cbk,
- "Bitrot translator specific operations."
+ "Pause/Resume scrub. Upon resume, scrubber continues where it "
+ "left off."
},
{ NULL, NULL, NULL }
};