summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaghavendra Bhat <raghavendrabhat@gluster.com>2010-08-17 03:31:36 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-08-17 02:24:07 -0700
commitab72e06f7bcf6a815424f67181d44e7a1a465846 (patch)
tree38f5ffc7c64aa2737825091cbfa5cb0cc3ce0762
parent8bc0ae16215248f85c64070f2f8600e5ab59e9ae (diff)
volume creation validationv3.1.0qa7
Signed-off-by: Raghavendra Bhat <raghavendrabhat@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 1267 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1267
-rw-r--r--cli/src/cli-cmd-parser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/src/cli-cmd-parser.c b/cli/src/cli-cmd-parser.c
index 40cf9bab5..ff98bc6ac 100644
--- a/cli/src/cli-cmd-parser.c
+++ b/cli/src/cli-cmd-parser.c
@@ -79,7 +79,7 @@ cli_cmd_volume_create_parse (const char **words, int wordcount, dict_t **options
goto out;
for (i = 0; i < strlen (volname); i++)
- if (!isalnum (volname[i]))
+ if (!isalnum (volname[i]) && (volname[i] != '_') && (volname[i] != '-'))
goto out;
}