diff options
Diffstat (limited to 'xlators/cluster/dht/src')
-rw-r--r-- | xlators/cluster/dht/src/dht-common.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/xlators/cluster/dht/src/dht-common.c b/xlators/cluster/dht/src/dht-common.c index bc8de94a7ca..a052d826408 100644 --- a/xlators/cluster/dht/src/dht-common.c +++ b/xlators/cluster/dht/src/dht-common.c @@ -4615,7 +4615,7 @@ dht_getxattr_get_real_filename_cbk(call_frame_t *frame, void *cookie, LOCK(&frame->lock); { - if (local->op_errno == ENODATA || local->op_errno == EOPNOTSUPP) { + if (local->op_errno == EOPNOTSUPP) { /* Nothing to do here, we have already found * a subvol which does not have the get_real_filename * optimization. If condition is for simple logic. @@ -4624,7 +4624,7 @@ dht_getxattr_get_real_filename_cbk(call_frame_t *frame, void *cookie, } if (op_ret == -1) { - if (op_errno == ENODATA || op_errno == EOPNOTSUPP) { + if (op_errno == EOPNOTSUPP) { /* This subvol does not have the optimization. * Better let the user know we don't support it. * Remove previous results if any. @@ -4652,7 +4652,7 @@ dht_getxattr_get_real_filename_cbk(call_frame_t *frame, void *cookie, goto post_unlock; } - if (op_errno == ENOENT) { + if (op_errno == ENOATTR) { /* Do nothing, our defaults are set to this. */ goto unlock; @@ -4720,7 +4720,7 @@ dht_getxattr_get_real_filename(call_frame_t *frame, xlator_t *this, loc_t *loc, cnt = local->call_cnt = layout->cnt; local->op_ret = -1; - local->op_errno = ENOENT; + local->op_errno = ENOATTR; for (i = 0; i < cnt; i++) { subvol = layout->list[i].xlator; |