From f1205225417b3e0d5cf27f5ba85ccdfe0ef6b246 Mon Sep 17 00:00:00 2001 From: Raghavendra Bhat Date: Mon, 22 Nov 2010 00:55:44 +0000 Subject: display the error message to the user if a volume with the name is tried to be created Signed-off-by: Raghavendra Bhat Signed-off-by: Anand V. Avati BUG: 1209 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1209 --- cli/src/cli-cmd-parser.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'cli') diff --git a/cli/src/cli-cmd-parser.c b/cli/src/cli-cmd-parser.c index 0b9f38bdb..7c02e1f05 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; -- cgit