diff options
author | Raghavendra Bhat <raghavendrabhat@gluster.com> | 2010-08-17 03:26:51 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2010-08-17 02:24:03 -0700 |
commit | 8bc0ae16215248f85c64070f2f8600e5ab59e9ae (patch) | |
tree | 8285725302517c03585675a455e3ae45c454c93f /cli/src/cli-cmd-parser.c | |
parent | e5737546071bd1d38430503bb64b9998bd7870dd (diff) |
Do not allow all to be a volume name while creating volume
Signed-off-by: Raghavendra Bhat <raghavendrabhat@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
BUG: 1209 ()
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1209
Diffstat (limited to 'cli/src/cli-cmd-parser.c')
-rw-r--r-- | cli/src/cli-cmd-parser.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cli/src/cli-cmd-parser.c b/cli/src/cli-cmd-parser.c index 96d1d197614..40cf9bab5a4 100644 --- a/cli/src/cli-cmd-parser.c +++ b/cli/src/cli-cmd-parser.c @@ -69,6 +69,9 @@ cli_cmd_volume_create_parse (const char **words, int wordcount, dict_t **options if (volname[0] == '-') goto out; + if (!strcmp (volname, "all")) + goto out; + if (strchr (volname, '/')) goto out; |