From 760742763686d561f03768345d672935d72e49b0 Mon Sep 17 00:00:00 2001 From: Prasanna Kumar Kalever Date: Thu, 16 Feb 2017 23:01:48 +0530 Subject: 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 --- utils/utils.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'utils') 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", -- cgit