summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCsaba Henk <csaba@gluster.com>2009-08-16 15:51:23 -0700
committerCsaba Henk <csaba@gluster.com>2009-08-16 16:51:54 -0700
commit10824751f8669e7c39ebd46ab698ed0abd4e5165 (patch)
tree3692fd64a4b1fade2e19ccad437c788c5e988638
parent15d85ff1fb518ddd15e03daa297f59457376725f (diff)
fuse: a compat fix for older protocol revisions
-rw-r--r--xlators/mount/fuse/src/fuse-bridge.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/xlators/mount/fuse/src/fuse-bridge.c b/xlators/mount/fuse/src/fuse-bridge.c
index 559234c637d..d20876a3bba 100644
--- a/xlators/mount/fuse/src/fuse-bridge.c
+++ b/xlators/mount/fuse/src/fuse-bridge.c
@@ -647,7 +647,10 @@ fuse_attr_cbk (call_frame_t *frame, void *cookie, xlator_t *this,
fao.attr_valid_nsec =
calc_timeout_nsec (priv->attribute_timeout);
- send_fuse_obj (this, finh, &fao);
+ priv->proto_minor >= 9 ?
+ send_fuse_obj (this, finh, &fao) :
+ send_fuse_data (this, finh, &fao,
+ FUSE_COMPAT_ATTR_OUT_SIZE);
} else {
gf_log ("glusterfs-fuse", GF_LOG_WARNING,
"%"PRIu64": %s() %s => -1 (%s)", frame->root->unique,