summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorPrasanna Kumar Kalever <prasanna.kalever@redhat.com>2017-02-16 23:01:48 +0530
committerPrasanna Kumar Kalever <prasanna.kalever@redhat.com>2017-02-17 10:45:27 +0530
commit760742763686d561f03768345d672935d72e49b0 (patch)
treee92bc44bee0b9cf1b88439911c21f62545eaef06 /utils
parentd0aaa839c4bb1f745d75b88c9ee0daf72fa414ad (diff)
cli: deprecate volserver option
volserver can be considered as "localhost", as we anyway tieing-up glusterd, gluster-blockd and cli processes. Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
Diffstat (limited to 'utils')
-rw-r--r--utils/utils.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/utils/utils.h b/utils/utils.h
index ca65ba9..fc9e1ef 100644
--- a/utils/utils.h
+++ b/utils/utils.h
@@ -128,6 +128,7 @@
goto label; \
} \
if (asprintf(&write, __VA_ARGS__) < 0) { \
+ UNLOCK(lock); \
ret = -1; \
goto label; \
} \
@@ -192,10 +193,9 @@
typedef enum gbCmdlineCreateOption {
/* needed by create option */
GB_CLI_CREATE_VOLUME = 11,
- GB_CLI_CREATE_VOLSERVER = 12, /* optional (default: localhost)*/
- GB_CLI_CREATE_SIZE = 13,
- GB_CLI_CREATE_MULTIPATH = 14,
- GB_CLI_CREATE_BACKEND_SERVESRS = 15,
+ GB_CLI_CREATE_SIZE = 12,
+ GB_CLI_CREATE_MULTIPATH = 13,
+ GB_CLI_CREATE_BACKEND_SERVESRS = 14,
GB_CLI_CREATE_OPT_MAX
} gbCmdlineCreateOption;
@@ -240,7 +240,6 @@ static const char *const gbCmdlineOptLookup[] = {
static const char *const gbCmdlineCreateOptLookup[] = {
[GB_CLI_CREATE_VOLUME] = "volume",
- [GB_CLI_CREATE_VOLSERVER] = "volserver",
[GB_CLI_CREATE_SIZE] = "size",
[GB_CLI_CREATE_MULTIPATH] = "mpath",
[GB_CLI_CREATE_BACKEND_SERVESRS] = "servers",