From 00700a0d665fa18e28b6898b5fd09c34fc0150bc Mon Sep 17 00:00:00 2001 From: Emmanuel Dreyfus Date: Thu, 30 Apr 2015 04:57:11 +0200 Subject: Fix ENOKEY build failure on non Linux systems ENOKEY is Linux specific, using it will fail the build on any other system. Proposed fix is to use EINVAL instead. BUG: 1129939 Change-Id: I7bdcb8dbc55aa50760c46c0d2ed932083b3066ed Signed-off-by: Emmanuel Dreyfus Reviewed-on: http://review.gluster.org/10456 Reviewed-by: Humble Devassy Chirammal Tested-by: Gluster Build System Reviewed-by: jiffin tony Thottan --- api/src/glfs-mgmt.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/src/glfs-mgmt.c b/api/src/glfs-mgmt.c index 2194c2f7a38..81e9fd63fa0 100644 --- a/api/src/glfs-mgmt.c +++ b/api/src/glfs-mgmt.c @@ -447,7 +447,7 @@ glfs_get_volume_info_rpc (call_frame_t *frame, xlator_t *this, flags = (int32_t)GF_GET_VOLUME_UUID; //ctx->flags; ret = dict_set_int32 (dict, "flags", flags); if (ret) { - gf_msg (frame->this->name, GF_LOG_ERROR, ENOKEY, + gf_msg (frame->this->name, GF_LOG_ERROR, EINVAL, API_MSG_DICT_SET_FAILED, "failed to set flags"); goto out; } @@ -665,7 +665,7 @@ glfs_volfile_fetch (struct glfs *fs) // decision ret = dict_set_int32 (dict, "min-op-version", GD_OP_VERSION_MIN); if (ret) { - gf_msg (THIS->name, GF_LOG_ERROR, ENOKEY, + gf_msg (THIS->name, GF_LOG_ERROR, EINVAL, API_MSG_DICT_SET_FAILED, "Failed to set min-op-version in request dict"); goto out; @@ -673,7 +673,7 @@ glfs_volfile_fetch (struct glfs *fs) ret = dict_set_int32 (dict, "max-op-version", GD_OP_VERSION_MAX); if (ret) { - gf_msg (THIS->name, GF_LOG_ERROR, ENOKEY, + gf_msg (THIS->name, GF_LOG_ERROR, EINVAL, API_MSG_DICT_SET_FAILED, "Failed to set max-op-version in request dict"); goto out; -- cgit