diff options
Diffstat (limited to 'cli')
| -rw-r--r-- | cli/src/cli-cmd-parser.c | 6 | 
1 files changed, 6 insertions, 0 deletions
diff --git a/cli/src/cli-cmd-parser.c b/cli/src/cli-cmd-parser.c index f5b263a6383..ef877f6ccbc 100644 --- a/cli/src/cli-cmd-parser.c +++ b/cli/src/cli-cmd-parser.c @@ -245,6 +245,12 @@ cli_cmd_volume_create_parse (const char **words, int wordcount, dict_t **options          /* If brick-count is not valid when replica or stripe is             given, exit here */ +        if (!brick_count) { +                cli_out ("No bricks specified"); +                ret = -1; +                goto out; +        } +          if (brick_count % count) {                  ret = -1;                  goto out;  | 
