[PATCH 3/3] fuse2fs: disable nfs exports

Darrick J. Wong
2025-05-22T00:08:12Z

The kernel fuse driver can export its own handles, but it doesn't
actually talk to the fuse server about those handles. Hence they don't
survive unmount/mount cycles like regular ext4. Disable them, because
they cause fstests regressions and it's not clear that they're suitable
for NFS export, at least not as most people understand ext4 NFS exports.

Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
---
misc/fuse2fs.c | 3 +++
1 file changed, 3 insertions(+)

diff --git a/misc/fuse2fs.c b/misc/fuse2fs.c
index 6137fc04198d39..769bb5babd2738 100644
--- a/misc/fuse2fs.c
+++ b/misc/fuse2fs.c
@@ -969,6 +969,9 @@ static void *op_init(struct fuse_conn_info *conn
#ifdef FUSE_CAP_CACHE_SYMLINKS
fuse_set_feature_flag(conn, FUSE_CAP_CACHE_SYMLINKS);
#endif
+#ifdef FUSE_CAP_NO_EXPORT_SUPPORT
+ fuse_set_feature_flag(conn, FUSE_CAP_NO_EXPORT_SUPPORT);
+#endif
#if FUSE_VERSION >= FUSE_MAKE_VERSION(3, 0)
conn->time_gran = 1;
cfg->use_ino = 1;