From 10824751f8669e7c39ebd46ab698ed0abd4e5165 Mon Sep 17 00:00:00 2001 From: Csaba Henk Date: Sun, 16 Aug 2009 15:51:23 -0700 Subject: fuse: a compat fix for older protocol revisions --- xlators/mount/fuse/src/fuse-bridge.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'xlators/mount/fuse') diff --git a/xlators/mount/fuse/src/fuse-bridge.c b/xlators/mount/fuse/src/fuse-bridge.c index 559234c63..d20876a3b 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, -- cgit