summaryrefslogtreecommitdiffstats
path: root/cli
diff options
context:
space:
mode:
authorKotresh HR <khiremat@redhat.com>2016-06-30 14:49:51 +0530
committerJeff Darcy <jdarcy@redhat.com>2016-07-15 06:42:43 -0700
commit452d0d9c58bb59c869a97a70e97ff0bee43f4298 (patch)
tree2d42f431a6a0f1a922efd5611dc2e45c27e045d6 /cli
parent8c6700bc7bc78ed4754bf2e59fd28a40530d4e76 (diff)
features/bitrot: Option to set scrub interval to a minute
Backport of http://review.gluster.org/#/c/14836/ Bitrot scrub-frequency supports "hourly|daily|weekly|biweekly|monthly". But it is painful for testing as minimum scrub-interval is an hour Hence introducing a scrub interval of minute to ease testing. It is intentionally not exposed in bitrot command help as it is only for testing. e.g., gluster vol bitrot <volname> scrub-frequency minute Change-Id: I155a65298d3fad5ae9e529d9c7d4b0d25fa297c0 BUG: 1354425 Signed-off-by: Kotresh HR <khiremat@redhat.com> (cherry picked from commit 7df1174f7bed2a00631cf17201f5217a053afeb1) Reviewed-on: http://review.gluster.org/14887 Smoke: Gluster Build System <jenkins@build.gluster.org> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> CentOS-regression: Gluster Build System <jenkins@build.gluster.org> Reviewed-by: Jeff Darcy <jdarcy@redhat.com>
Diffstat (limited to 'cli')
-rw-r--r--cli/src/cli-cmd-parser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/src/cli-cmd-parser.c b/cli/src/cli-cmd-parser.c
index 0adc956..7aed82c 100644
--- a/cli/src/cli-cmd-parser.c
+++ b/cli/src/cli-cmd-parser.c
@@ -5161,7 +5161,7 @@ cli_cmd_bitrot_parse (const char **words, int wordcount, dict_t **options)
char *scrub_freq_values[] = {"hourly",
"daily", "weekly",
"biweekly", "monthly",
- NULL};
+ "minute", NULL};
char *scrub_values[] = {"pause", "resume",
"status", NULL};
dict_t *dict = NULL;