summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/afr/src/afr-inode-read.c
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/cluster/afr/src/afr-inode-read.c')
-rw-r--r--xlators/cluster/afr/src/afr-inode-read.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/xlators/cluster/afr/src/afr-inode-read.c b/xlators/cluster/afr/src/afr-inode-read.c
index 5d8ba44d9ea..3b89da9abdb 100644
--- a/xlators/cluster/afr/src/afr-inode-read.c
+++ b/xlators/cluster/afr/src/afr-inode-read.c
@@ -470,6 +470,9 @@ afr_readlink_cbk (call_frame_t *frame, void *cookie,
out:
if (unwind) {
+ if (sbuf)
+ sbuf->st_ino = local->cont.readlink.ino;
+
AFR_STACK_UNWIND (readlink, frame, op_ret, op_errno, buf, sbuf);
}
@@ -525,7 +528,9 @@ afr_readlink (call_frame_t *frame, xlator_t *this,
}
loc_copy (&local->loc, loc);
+
local->cont.readlink.size = size;
+ local->cont.readlink.ino = loc->inode->ino;
STACK_WIND_COOKIE (frame, afr_readlink_cbk,
(void *) (long) call_child,