summaryrefslogtreecommitdiffstats
path: root/xlators/storage/posix
diff options
context:
space:
mode:
authorPranith Kumar K <pkarampu@redhat.com>2014-12-09 10:57:10 +0530
committerRaghavendra Bhat <raghavendra@redhat.com>2014-12-10 10:10:50 -0800
commit0b293a95839a68005dd464526598a113b37b089b (patch)
treef06d4d4b2d6a7f84a9f40265710cd220b2e21625 /xlators/storage/posix
parent1877c43a6530e92ef9dee52463ddc4216a703329 (diff)
storage/posix: Set errno for xattrop failures
Change-Id: I4d44068c8da5257227d62906ec18ae16f6ed6c02 BUG: 1172477 Signed-off-by: Pranith Kumar K <pkarampu@redhat.com> Reviewed-on: http://review.gluster.org/9261 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Raghavendra Bhat <raghavendra@redhat.com> Tested-by: Raghavendra Bhat <raghavendra@redhat.com>
Diffstat (limited to 'xlators/storage/posix')
-rw-r--r--xlators/storage/posix/src/posix.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/xlators/storage/posix/src/posix.c b/xlators/storage/posix/src/posix.c
index 0dcaff0..a3aa57a 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: