From e7d9f599ee52408819be649ef41ffc00c77e785e Mon Sep 17 00:00:00 2001 From: shishir gowda Date: Wed, 29 Feb 2012 12:41:55 +0530 Subject: cluster/stripe: Readdirp - send aggregated block_size in stat Change-Id: Iee83a355ab767acac89b11d0a5add8527fc387a7 BUG: 797308 Signed-off-by: shishir gowda Reviewed-on: http://review.gluster.com/2833 Tested-by: Gluster Build System Reviewed-by: Amar Tumballi --- xlators/cluster/stripe/src/stripe.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'xlators/cluster/stripe/src/stripe.c') diff --git a/xlators/cluster/stripe/src/stripe.c b/xlators/cluster/stripe/src/stripe.c index 5b1610724..464ffb930 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) { -- cgit