summaryrefslogtreecommitdiffstats
path: root/cli
diff options
context:
space:
mode:
authorRaghavendra Bhat <raghavendrabhat@gluster.com>2010-11-22 00:55:44 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-11-24 00:33:31 -0800
commitf1205225417b3e0d5cf27f5ba85ccdfe0ef6b246 (patch)
tree22e45eaab23a65620245b4a2652ecd6c626d7174 /cli
parentc509e7f185d4f76be9f5ddbd61839239198a0b1d (diff)
display the error message to the user if a volume with the name is tried to be created
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')
-rw-r--r--cli/src/cli-cmd-parser.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/cli/src/cli-cmd-parser.c b/cli/src/cli-cmd-parser.c
index 0b9f38bdb0b..7c02e1f0562 100644
--- a/cli/src/cli-cmd-parser.c
+++ b/cli/src/cli-cmd-parser.c
@@ -83,8 +83,10 @@ cli_cmd_volume_create_parse (const char **words, int wordcount, dict_t **options
if (volname[0] == '-')
goto out;
- if (!strcmp (volname, "all"))
+ if (!strcmp (volname, "all")) {
+ cli_out ("\"all\" cannot be the name of a volume.");
goto out;
+ }
if (strchr (volname, '/'))
goto out;