summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/stripe/src
diff options
context:
space:
mode:
authorshishir gowda <shishirng@gluster.com>2012-02-29 12:41:55 +0530
committerVijay Bellur <vijay@gluster.com>2012-03-12 04:24:13 -0700
commite7d9f599ee52408819be649ef41ffc00c77e785e (patch)
treeb07cca01d1b4475c5735b3b3765475948693178e /xlators/cluster/stripe/src
parent152a0194e736e073d96fedd980b976cc1f1d4df8 (diff)
cluster/stripe: Readdirp - send aggregated block_size in stat
Change-Id: Iee83a355ab767acac89b11d0a5add8527fc387a7 BUG: 797308 Signed-off-by: shishir gowda <shishirng@gluster.com> Reviewed-on: http://review.gluster.com/2833 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Amar Tumballi <amarts@redhat.com>
Diffstat (limited to 'xlators/cluster/stripe/src')
-rw-r--r--xlators/cluster/stripe/src/stripe.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/xlators/cluster/stripe/src/stripe.c b/xlators/cluster/stripe/src/stripe.c
index 5b1610724d4..464ffb9305f 100644
--- a/xlators/cluster/stripe/src/stripe.c
+++ b/xlators/cluster/stripe/src/stripe.c
@@ -4139,6 +4139,8 @@ stripe_readdirp_lookup_cbk (call_frame_t *frame, void *cookie,
goto unlock;
}
stripe_iatt_merge (stbuf, &entry->d_stat);
+ local->stbuf_blocks += stbuf->ia_blocks;
+
stripe_ctx_handle (this, prev, local, xattr);
}
unlock:
@@ -4158,6 +4160,7 @@ unlock:
main_local->op_errno = local->op_errno;
main_local->op_ret = local->op_ret;
}
+ entry->d_stat.ia_blocks = local->stbuf_blocks;
}
UNLOCK (&main_frame->lock);
if (done) {