]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rbd-fuse: remove FUSE_CAP_BIG_WRITES when linking to libfuse3
authorXiubo Li <xiubli@redhat.com>
Fri, 17 Apr 2020 09:46:24 +0000 (05:46 -0400)
committerNathan Cutler <ncutler@suse.com>
Mon, 27 Apr 2020 10:48:26 +0000 (12:48 +0200)
The big-writes is enabled as default from 3.0.

Fixes: https://tracker.ceph.com/issues/44891
Signed-off-by: Xiubo Li <xiubli@redhat.com>
(cherry picked from commit 32a45b624b5142582f1ef58f87b7442d273b0ce7)

src/rbd_fuse/rbd-fuse.cc

index 13776171f01479b9c1f4fd7168a0e9a83b5c4cad..b7feea7bfd0bcabc2e3379d58c4d311cfc2f3b44 100644 (file)
@@ -505,7 +505,7 @@ 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)
+#if FUSE_VERSION >= FUSE_MAKE_VERSION(2, 8) && FUSE_VERSION < FUSE_MAKE_VERSION(3, 0)
        conn->want |= FUSE_CAP_BIG_WRITES;
 #endif
        rados_ioctx_set_namespace(ioctx, nspace_name);