From 0b293a95839a68005dd464526598a113b37b089b Mon Sep 17 00:00:00 2001 From: Pranith Kumar K Date: Tue, 9 Dec 2014 10:57:10 +0530 Subject: storage/posix: Set errno for xattrop failures Change-Id: I4d44068c8da5257227d62906ec18ae16f6ed6c02 BUG: 1172477 Signed-off-by: Pranith Kumar K Reviewed-on: http://review.gluster.org/9261 Tested-by: Gluster Build System Reviewed-by: Raghavendra Bhat Tested-by: Raghavendra Bhat --- xlators/storage/posix/src/posix.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xlators/storage/posix/src/posix.c b/xlators/storage/posix/src/posix.c index 0dcaff08291..a3aa57a0153 100644 --- a/xlators/storage/posix/src/posix.c +++ b/xlators/storage/posix/src/posix.c @@ -4537,6 +4537,8 @@ unlock: array = NULL; out: + if (op_ret < 0) + filler->op_errno = op_errno; return op_ret; } @@ -4592,6 +4594,7 @@ do_xattrop (call_frame_t *frame, xlator_t *this, loc_t *loc, fd_t *fd, op_ret = dict_foreach (xattr, _posix_handle_xattr_keyvalue_pair, &filler); + op_errno = filler.op_errno; out: -- cgit