From 9f1c8a5ba49e7cad67b7ebf6e3e119eeb32a7ff0 Mon Sep 17 00:00:00 2001 From: Prasanna Kumar Kalever Date: Wed, 22 Feb 2017 14:49:55 +0530 Subject: cli: change in synopsis for gluster-block commands from now we will have fixed formats for commands. The new outfit will look like: $ gluster-block help gluster-block (3ba7ec5) usage: gluster-block [] commands: create [ha ] create block device. list list available block devices. info details about block device. delete delete block device. help show this message and exit. version show version info and exit. Example usage: $ gluster-block create volume/blockname 192.168.0.1 1GiB $ gluster-block create volume/blockname ha 2 192.168.0.1,192.168.0.2 1GiB $ gluster-block list volume $ gluster-block info volume/blockname $ gluster-block delete volume/blockname Change-Id: Idc6b55c26432ed1ac3f002c2a2b3dbb81b180ec2 Signed-off-by: Prasanna Kumar Kalever --- utils/utils.c | 42 ------------------------------------------ 1 file changed, 42 deletions(-) (limited to 'utils/utils.c') diff --git a/utils/utils.c b/utils/utils.c index 3441e54..cb0e96e 100644 --- a/utils/utils.c +++ b/utils/utils.c @@ -33,48 +33,6 @@ glusterBlockCLIOptEnumParse(const char *opt) } -int -glusterBlockCLICreateOptEnumParse(const char *opt) -{ - int i; - - - if (!opt) { - return GB_CLI_CREATE_OPT_MAX; - } - - /* i = 11, enum start look gbCmdlineCreateOption */ - for (i = 11; i < GB_CLI_CREATE_OPT_MAX; i++) { - if (!strcmp(opt, gbCmdlineCreateOptLookup[i])) { - return i; - } - } - - return i; -} - - -int -glusterBlockCLICommonOptEnumParse(const char *opt) -{ - int i; - - - if (!opt) { - return GB_CLI_COMMON_OPT_MAX; - } - - /* i = 21, enum start look gbCmdlineCreateOption */ - for (i = 21; i < GB_CLI_COMMON_OPT_MAX; i++) { - if (!strcmp(opt, gbCmdlineCommonOptLookup[i])) { - return i; - } - } - - return i; -} - - int blockMetaKeyEnumParse(const char *opt) { -- cgit