From: Xiubo Li Date: Fri, 17 Apr 2020 09:46:24 +0000 (-0400) Subject: rbd-fuse: remove FUSE_CAP_BIG_WRITES when linking to libfuse3 X-Git-Tag: v14.2.10~91^2~5 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=88efbe199e5daadd13cdb76004ad6c8da4b0ae99;p=ceph.git rbd-fuse: remove FUSE_CAP_BIG_WRITES when linking to libfuse3 The big-writes is enabled as default from 3.0. Fixes: https://tracker.ceph.com/issues/44891 Signed-off-by: Xiubo Li (cherry picked from commit 32a45b624b5142582f1ef58f87b7442d273b0ce7) --- diff --git a/src/rbd_fuse/rbd-fuse.cc b/src/rbd_fuse/rbd-fuse.cc index 13776171f01..b7feea7bfd0 100644 --- a/src/rbd_fuse/rbd-fuse.cc +++ b/src/rbd_fuse/rbd-fuse.cc @@ -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);