From 1579d633dbeeeede20d016bbec806a00688e32f3 Mon Sep 17 00:00:00 2001 From: Gaurav Kumar Garg Date: Tue, 24 Mar 2015 18:20:42 +0530 Subject: glusterd: bitrot scrub-throttle/scrub-frequency/scrub option handling CLI commands for bitrot features: volume bitrot {scrub-throttle frozen|lazy|normal|aggressive} volume bitrot {scrub-frequency daily|weekly|biweekly|monthly} volume bitrot {scrub pause|resume} These commands will handle their options and set respective value in dictionary. Change-Id: I1e8aa1b1c7d91a7f0faec9a2968b3072f42f8ba8 BUG: 1170075 Signed-off-by: Gaurav Kumar Garg Reviewed-on: http://review.gluster.org/9985 Tested-by: Gluster Build System Reviewed-by: Atin Mukherjee Reviewed-by: Vijay Bellur --- cli/src/cli-cmd-parser.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'cli') diff --git a/cli/src/cli-cmd-parser.c b/cli/src/cli-cmd-parser.c index 0584b1edbbd..1c2e14c7a5e 100644 --- a/cli/src/cli-cmd-parser.c +++ b/cli/src/cli-cmd-parser.c @@ -4859,12 +4859,14 @@ cli_cmd_bitrot_parse (const char **words, int wordcount, dict_t **options) char *opwords[] = {"enable", "disable", "scrub-throttle", "scrub-frequency", - "scrub"}; + "scrub", NULL}; char *scrub_throt_values[] = {"frozen", "lazy", "normal", - "aggressive"}; + "aggressive", NULL}; char *scrub_freq_values[] = {"daily", "weekly", - "biweekly", "monthly"}; - char *scrub_values[] = {"pause", "resume"}; + "biweekly", "monthly", + NULL}; + char *scrub_values[] = {"pause", "resume", + NULL}; dict_t *dict = NULL; gf_bitrot_type type = GF_BITROT_OPTION_TYPE_NONE; -- cgit