diff options
author | Csaba Henk <csaba@gluster.com> | 2009-08-16 15:51:23 -0700 |
---|---|---|
committer | Csaba Henk <csaba@gluster.com> | 2009-08-16 16:51:54 -0700 |
commit | 10824751f8669e7c39ebd46ab698ed0abd4e5165 (patch) | |
tree | 3692fd64a4b1fade2e19ccad437c788c5e988638 /xlators | |
parent | 15d85ff1fb518ddd15e03daa297f59457376725f (diff) |
fuse: a compat fix for older protocol revisions
Diffstat (limited to 'xlators')
-rw-r--r-- | xlators/mount/fuse/src/fuse-bridge.c | 5 |
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, |