From 21673e8b9e4e949706874c3a89771f15bbf5aeca Mon Sep 17 00:00:00 2001 From: Danny Al-Gaaf Date: Mon, 28 Jan 2013 16:33:43 +0100 Subject: [PATCH] rbd-fuse: fix usage of conn->want Fix usage of conn->want and FUSE_CAP_BIG_WRITES. Both need libfuse version >= 2.8. Encapsulate the related code line into a check for the needed FUSE_VERSION as already done in ceph-fuse in some cases. Signed-off-by: Danny Al-Gaaf --- src/rbd_fuse/rbd-fuse.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/rbd_fuse/rbd-fuse.c b/src/rbd_fuse/rbd-fuse.c index b3e318f0781e4..c204463b87872 100644 --- a/src/rbd_fuse/rbd-fuse.c +++ b/src/rbd_fuse/rbd-fuse.c @@ -461,8 +461,9 @@ rbdfs_init(struct fuse_conn_info *conn) ret = rados_ioctx_create(cluster, pool_name, &ioctx); if (ret < 0) exit(91); - +#if FUSE_VERSION >= FUSE_MAKE_VERSION(2, 8) conn->want |= FUSE_CAP_BIG_WRITES; +#endif gotrados = 1; // init's return value shows up in fuse_context.private_data, -- 2.39.5