FUSE
FUSE connects a kernel filesystem interface to a userspace daemon that implements filesystem operations.
A kernel module, userspace library and mount utility connect the daemon through /dev/fuse. Access defaults to the mounting user. allow_other lifts this restriction, normally for root unless configured otherwise; default_permissions enables kernel file-mode checks. [3]
Linux v6.12 starts with a 32-page default request limit; FUSE_MAX_PAGES negotiation can raise it, capped at 256 pages. [7] [8] Its fuse_readahead path uses the smaller of the negotiated page limit and max_read divided by PAGE_SIZE. [9] The fuseblk default block size is a separate 512-byte setting. /sys/fs/fuse/connections exposes waiting counts, background limits and an abort control that fails pending and new requests. [3]
In direct-io mode the page cache is bypassed, while cached mode is write-through by default and writeback-cache must be negotiated at initialization. Writeback-cache mode assumes all changes pass through the kernel module, so it is generally unsuitable for network filesystems. [4] Persistence depends on the daemon and its backend, not on the framework name. [1] This filesystem interface is unrelated to binary fuse filters.
Linux v6.12 maps a FUSE_FSYNCDIR ENOSYS reply to success and caches no_fsyncdir for that connection, separate from the regular-file no_fsync flag. libfuse 3.16.2's low-level dispatcher sends ENOSYS when fsyncdir is absent. This does not prove a namespace change was lost or persisted; inspect the backend contract. [5] [6]
DFUSE coordinates distributed leases inside a modified FUSE driver to support coherent writeback across clients. It is not a stock mount option or a generic persistence guarantee. [10]
Relations
- related
- FUSE writeback-cache, FUSE FLUSH, Page cache, fsync, Directory fsync, FUSE background request limit, FUSE INTERRUPT
Advantages
- Non-privileged users can mount filesystems implemented as ordinary processes. [3]
- A broken or deadlocked daemon can be handled by killing it or by a forced unmount while the filesystem is still attached. [3]
Limitations
- When an interrupted request has reached the daemon, the kernel queues a separate INTERRUPT request, which the daemon may ignore; a fatal signal before dispatch can instead remove the original request. [3]
- Partial-page writes in writeback-cache mode make the kernel issue READ requests even for files opened write-only. [4]
Citations
- libfuse 3.16.2: low-level open, flush, release and fsync contracts
- Linux kernel 7.3.0 documentation: FUSE, sections 1.2-1.9
- Linux kernel 7.3.0 documentation: FUSE I/O Modes
- Linux v6.12: fuse_dir_fsync and no_fsyncdir handling
- libfuse 3.16.2: do_fsyncdir and an absent low-level callback
- Linux v6.12: fuse_conn_init and process_init_reply request-page negotiation
- Linux v6.12: default and maximum FUSE request-page constants
- Linux v6.12: fuse_readahead and direct-I/O request limits
- Li et al.: DFUSE, SoCC 2025, sections 3-6; DOI 10.1145/3772052.3772208
Further reading
Sources & caveats
- fuse-kernel is the Linux kernel 7.3.0 FUSE documentation, read for components, mount options, the control filesystem, interrupts and connection abort.
- fuse-io is the Linux kernel 7.3.0 FUSE I/O modes page, read for direct-io, write-through and writeback-cache behavior.
- libfuse-api is the libfuse 3.16.2 low-level header, re-read for the open, flush, release and fsync contracts.
- The buffered-io entry links here because cached FUSE modes route reads and writes through the page cache.
- Directory-sync support was checked in Linux v6.12 and libfuse 3.16.2 source; no daemon was mounted or crash-tested.
- The overview's unconditional 32-page sentence conflicts with v6.12 source: a 32-page default, FUSE_MAX_PAGES negotiation capped at 256, and a separate max_read bound in fuse_readahead. Source review, not a mounted-daemon test or a guarantee for other versions.
- DFUSE SoCC 2025, sections 3-6, read as a protocol-extension example; no replication or crash test performed.
- On 2026-10-26, FUSE overview section 1.5.1 was rechecked to distinguish fatal-signal cancellation before dispatch from a queued INTERRUPT after transfer to userspace.