diff options
Diffstat (limited to 'cli/src')
| -rw-r--r-- | cli/src/cli-cmd-parser.c | 5 | ||||
| -rw-r--r-- | cli/src/cli-cmd-volume.c | 2 | 
2 files changed, 5 insertions, 2 deletions
diff --git a/cli/src/cli-cmd-parser.c b/cli/src/cli-cmd-parser.c index f696ab45c55..b83275bbfd7 100644 --- a/cli/src/cli-cmd-parser.c +++ b/cli/src/cli-cmd-parser.c @@ -5183,7 +5183,8 @@ cli_cmd_bitrot_parse (const char **words, int wordcount, dict_t **options)                                                       "biweekly", "monthly",                                                       "minute",  NULL};          char               *scrub_values[]        = {"pause", "resume", -                                                     "status", NULL}; +                                                     "status", "ondemand", +                                                     NULL};          dict_t             *dict                  = NULL;          gf_bitrot_type     type                   = GF_BITROT_OPTION_TYPE_NONE;          int32_t            expiry_time            = 0; @@ -5315,6 +5316,8 @@ cli_cmd_bitrot_parse (const char **words, int wordcount, dict_t **options)                          } else {                                  if (strcmp (words[4], "status") == 0) {                                          type = GF_BITROT_CMD_SCRUB_STATUS; +                                } else if (strcmp (words[4], "ondemand") == 0) { +                                        type = GF_BITROT_CMD_SCRUB_ONDEMAND;                                  } else {                                          type = GF_BITROT_OPTION_TYPE_SCRUB;                                  } diff --git a/cli/src/cli-cmd-volume.c b/cli/src/cli-cmd-volume.c index 98e082f9906..896b1ce5686 100644 --- a/cli/src/cli-cmd-volume.c +++ b/cli/src/cli-cmd-volume.c @@ -3016,7 +3016,7 @@ struct cli_cmd volume_cmds[] = {           "volume bitrot <volname> scrub-throttle {lazy|normal|aggressive} |\n"           "volume bitrot <volname> scrub-frequency {hourly|daily|weekly|biweekly"           "|monthly} |\n" -         "volume bitrot <volname> scrub {pause|resume|status}", +         "volume bitrot <volname> scrub {pause|resume|status|ondemand}",           cli_cmd_bitrot_cbk,           "Bitrot translator specific operation. For more information about "           "bitrot command type  'man gluster'"  | 
