[Bug 296936] [fusefs] write() to a file opened with O_APPEND fails with EBADF

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 20 Jul 2026 20:16:23 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=296936

--- Comment #1 from Alan Somers <asomers@FreeBSD.org> ---
Is this really a bug in fusefs(4), or in fusefs-bindfs(8)?  Have you tried to
reproduce it with any other fuse file system?

And BTW, the vfs.fusefs.data_cache_mode only affects fuse filesystems that use
protocol 7.22 or older.  Beginning with 7.23, the file system itself can tell
the kernel which cache mode to use.  fusefs-bindfs uses libfuse3, which uses a
pretty recent protocol, so that sysctl won't make a difference for you.

Does fusefs-bindfs implement FUSE_OPEN?  You might be able to tell if it has
some kind of verbose mode that shows you the requests it gets and their
corresponding responses.

And I know this doesn't directly address the reported bug, but are you sure
that nullfs(8) won't work for you?  I know that bindfs has some features
lacking in nullfs, but I think there's some bad advice floating around the
internet that suggests people use bindfs always, even when nullfs would work. 
Nullfs, being implemented in the kernel, will always be faster than bindfs.

-- 
You are receiving this mail because:
You are the assignee for the bug.