diff options
author | Prasanna Kumar Kalever <prasanna.kalever@redhat.com> | 2017-02-20 17:47:42 +0530 |
---|---|---|
committer | Prasanna Kumar Kalever <prasanna.kalever@redhat.com> | 2017-02-20 18:17:28 +0530 |
commit | 905c66de4e2adcbc169ce708b8b405de41feaea8 (patch) | |
tree | d85e7192f14483b7cdc0a44c9e58667e1ac9d611 /utils | |
parent | 1c5a7f4dc33bbb1738b66dd73aa281c78aa0c326 (diff) |
gluster-blockd: defend on connect() issues
currently remote connect(b/w gluster-blockd's) failed cases such as,
ECONNREFUSED
No-one listening on the remote address.
ENETUNREACH
Network is unreachable.
ETIMEDOUT
Timeout while attempting connection ...
are considered as CONFIGFAIL, this patch defend on these errno's.
Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
Diffstat (limited to 'utils')
-rw-r--r-- | utils/utils.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/utils/utils.h b/utils/utils.h index 0e6ed9b..77a6de0 100644 --- a/utils/utils.h +++ b/utils/utils.h @@ -301,12 +301,12 @@ static const char *const MetakeyLookup[] = { }; typedef enum MetaStatus { - GB_CONFIG_SUCCESS = 0, - GB_CONFIG_FAIL = 1, - GB_CONFIG_INPROGRESS = 2, - GB_CLEANUP_SUCCESS = 3, - GB_CLEANUP_FAIL = 4, - GB_CLEANUP_INPROGRES = 5, + GB_CONFIG_SUCCESS = 0, + GB_CONFIG_FAIL = 1, + GB_CONFIG_INPROGRESS = 2, + GB_CLEANUP_SUCCESS = 3, + GB_CLEANUP_FAIL = 4, + GB_CLEANUP_INPROGRESS = 5, GB_METASTATUS_MAX } MetaStatus; @@ -315,7 +315,7 @@ static const char *const MetaStatusLookup[] = { [GB_CONFIG_SUCCESS] = "CONFIGSUCCESS", [GB_CONFIG_FAIL] = "CONFIGFAIL", [GB_CONFIG_INPROGRESS] = "CONFIGINPROGRESS", - [GB_CLEANUP_INPROGRES] = "CLEANUPINPROGRESS", + [GB_CLEANUP_INPROGRESS] = "CLEANUPINPROGRESS", [GB_CLEANUP_SUCCESS] = "CLEANUPSUCCESS", [GB_CLEANUP_FAIL] = "CLEANUPFAIL", |