summaryrefslogtreecommitdiffstats
path: root/utils/utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'utils/utils.c')
-rw-r--r--utils/utils.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/utils/utils.c b/utils/utils.c
index 13d61cc..3f52134 100644
--- a/utils/utils.c
+++ b/utils/utils.c
@@ -50,6 +50,26 @@ glusterBlockCLIOptEnumParse(const char *opt)
int
+glusterBlockCLICreateOptEnumParse(const char *opt)
+{
+ int i;
+
+
+ if (!opt) {
+ return GB_CLI_CREATE_OPT_MAX;
+ }
+
+ for (i = 0; i < GB_CLI_CREATE_OPT_MAX; i++) {
+ if (!strcmp(opt, gbCliCreateOptLookup[i])) {
+ return i;
+ }
+ }
+
+ return i;
+}
+
+
+int
glusterBlockDaemonOptEnumParse(const char *opt)
{
int i;