summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
authorshishir gowda <shishirng@gluster.com>2011-11-14 15:44:22 +0530
committerVijay Bellur <vijay@gluster.com>2012-01-03 23:00:51 -0800
commit58dbe256b9b49709d9b9d2c4ec29feeceb19540f (patch)
tree1ad7332c04614409884903a9015df2689f16a986 /xlators
parent9c1e4029f782f91a34f8de44d07e9a4607045845 (diff)
Cluster/stripe setattr: Wind only to first_child for special files
Change-Id: Ia60207199ee702f22222b67a1f1d62b8093e871c BUG: 765539 Signed-off-by: shishir gowda <shishirng@gluster.com> Reviewed-on: http://review.gluster.com/723 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Vijay Bellur <vijay@gluster.com>
Diffstat (limited to 'xlators')
-rw-r--r--xlators/cluster/stripe/src/stripe.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/xlators/cluster/stripe/src/stripe.c b/xlators/cluster/stripe/src/stripe.c
index e6175c20374..b51f84910e9 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,