From 58dbe256b9b49709d9b9d2c4ec29feeceb19540f Mon Sep 17 00:00:00 2001 From: shishir gowda Date: Mon, 14 Nov 2011 15:44:22 +0530 Subject: Cluster/stripe setattr: Wind only to first_child for special files Change-Id: Ia60207199ee702f22222b67a1f1d62b8093e871c BUG: 765539 Signed-off-by: shishir gowda Reviewed-on: http://review.gluster.com/723 Tested-by: Gluster Build System Reviewed-by: Vijay Bellur --- xlators/cluster/stripe/src/stripe.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/xlators/cluster/stripe/src/stripe.c b/xlators/cluster/stripe/src/stripe.c index e6175c203..b51f84910 100644 --- a/xlators/cluster/stripe/src/stripe.c +++ b/xlators/cluster/stripe/src/stripe.c @@ -861,7 +861,15 @@ stripe_setattr (call_frame_t *frame, xlator_t *this, loc_t *loc, } local->op_ret = -1; frame->local = local; - local->call_count = priv->child_count; + if (IA_ISDIR (loc->inode->ia_type) || IA_ISREG (loc->inode->ia_type)) { + local->call_count = priv->child_count; + } else { + local->call_count = 1; + STACK_WIND (frame, stripe_setattr_cbk, FIRST_CHILD (this), + FIRST_CHILD (this)->fops->setattr, + loc, stbuf, valid); + return 0; + } while (trav) { STACK_WIND (frame, stripe_setattr_cbk, -- cgit