]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rbd-fuse: fix usage of conn->want
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Mon, 28 Jan 2013 15:33:43 +0000 (16:33 +0100)
committerSage Weil <sage@inktank.com>
Mon, 28 Jan 2013 21:56:32 +0000 (13:56 -0800)
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 <danny.al-gaaf@bisect.de>
src/rbd_fuse/rbd-fuse.c

index b3e318f0781e4afedd7bfb1e2eaec21d463c5243..c204463b8787234e6a3469daf3b65bb1260bf29f 100644 (file)
@@ -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,