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>
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,