From 09678a68a323b3873c8f8fe24d42e14294e0034c Mon Sep 17 00:00:00 2001 From: Kotresh HR Date: Thu, 30 Jun 2016 14:49:51 +0530 Subject: features/bitrot: Option to set scrub interval to a minute Backport of http://review.gluster.org/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 scrub-frequency minute Change-Id: I155a65298d3fad5ae9e529d9c7d4b0d25fa297c0 BUG: 1354429 Signed-off-by: Kotresh HR Reviewed-on: http://review.gluster.org/14836 (cherry picked from commit 7df1174f7bed2a00631cf17201f5217a053afeb1) Reviewed-on: http://review.gluster.org/14890 Smoke: Gluster Build System NetBSD-regression: NetBSD Build System CentOS-regression: Gluster Build System Reviewed-by: Jeff Darcy --- cli/src/cli-cmd-parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cli/src') diff --git a/cli/src/cli-cmd-parser.c b/cli/src/cli-cmd-parser.c index 26b02cf6a92..08ad8f8adcd 100644 --- a/cli/src/cli-cmd-parser.c +++ b/cli/src/cli-cmd-parser.c @@ -5165,7 +5165,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; -- cgit