]> git.apps.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)
committerXiubo Li <xiubli@redhat.com>
Sat, 18 Apr 2020 09:50:27 +0000 (05:50 -0400)
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>
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);