diff options
author | Emmanuel Dreyfus <manu@netbsd.org> | 2015-04-30 04:57:11 +0200 |
---|---|---|
committer | Vijay Bellur <vbellur@redhat.com> | 2015-04-29 22:23:11 -0700 |
commit | 00700a0d665fa18e28b6898b5fd09c34fc0150bc (patch) | |
tree | fb3dc13e2bb340b56c1ca26f4f9e3cce2af45f51 /api/src | |
parent | 4306245aef7cdcbfa6d7a59dccd031d4ada54105 (diff) |
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 <manu@netbsd.org>
Reviewed-on: http://review.gluster.org/10456
Reviewed-by: Humble Devassy Chirammal <humble.devassy@gmail.com>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: jiffin tony Thottan <jthottan@redhat.com>
Diffstat (limited to 'api/src')
-rw-r--r-- | api/src/glfs-mgmt.c | 6 |
1 files 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; |