fuse VS libfuse

Compare fuse vs libfuse and see what are their differences.

fuse

FUSE library for Go.  go get bazil.org/fuse   (by bazil)

libfuse

The reference implementation of the Linux FUSE (Filesystem in Userspace) interface (by libfuse)
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
fuse libfuse
7 21
1,555 4,988
0.6% 1.1%
0.0 8.6
5 months ago 4 days ago
Go C
GNU General Public License v3.0 or later GNU General Public License v3.0 or later
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

fuse

Posts with mentions or reviews of fuse. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-01-05.
  • FUSE Filesystem
    3 projects | dev.to | 5 Jan 2023
    For this first implementation I used Go. After a reviewing some solutions I decided to use https://github.com/bazil/fuse. It seemed to be the easiest way to prototype.
  • Introducing LiteFS
    9 projects | news.ycombinator.com | 21 Sep 2022
    Often, the SQLite database would fit in RAM, and reads would be served straight from the page cache, with no overhead.

    Disclaimer: I wrote the FUSE framework LiteFS uses, https://bazil.org/fuse -- and I also have some pending performance-related work to finish, there...

  • I just upgraded to 13.1-RELEASE
    2 projects | /r/freebsd | 18 May 2022
    I'd love to upgrade but I rely on mounting my Google Drive via /dev/fuse and rclone. There was a post yesterday saying that is broken in 13.1-RELEASE and linking to a FreeBSD bug which links to a rclone bug which links to a bazil bug which seems to have no traction. Someone mentioned a commandline utility that can interact with gdrive but this seems like a pretty bad replacement. IIUC the FreeBSD devs' theory is that a new async system call path exposed a bug in rclone and the blame is there. Anyway, I'm still on 13.0 for now, unfortunately.
  • Just updated to 13.1-Release, some sort of rclone/fuse issue
    4 projects | /r/freebsd | 17 May 2022
    This was also reported to rclone where someone pointed out that the problem is with fuse lib on FreeBSD and as such is a FreeBSD fuse lib porting problem.
  • Distributed Systems Shibboleths
    3 projects | news.ycombinator.com | 2 May 2022
    > 'failed' state and the process itself leaving the accounting tables.

    Once again, that cannot be done until the parent process consumes the exit status. That's what the zombie is there for. Zombies don't take up much space.

    > Stuck mounts have a half solution (lazy unmounts) but even _that_ interface really also needs a timeout value after which operations on the target should be assumed to fail rather than return correctly.

    These days most NFS etc mounts are "soft mounts", that is operations will eventually time out.

    Lazy unmount doesn't really apply here, it makes the mountpoint disappear from the global namespace, but all existing open files remain untouched, and the mount lives as long as anything is still using it; it just removes the "entry point" to the mount.

    On today's Linux, it's up to each filesystem to provide abort/timeout mechanism. For timeouts, this is the right design, as demonstrated by macOS complications with FUSE. I do wish there was a common way to make things abort.

    There was a patch in circulation a long time ago, that could seamlessly switch all open FDs of any given mountpoint into a whole different filesystem named badfs. badfs would just return an error on any operation. As far as I know, that patch never got merged, probably because nobody ever got it working 100%.

    That kind of a DoS would require a local attacker, and then the victim to access a mountpoint owned by the attacker. Using FUSE, you could get a lot of processes hanging like that, for sure. I guess you could trap a mail delivery agent, if you still had a system where mail was delivered to users' home directories.

    However, forcibly aborting any FUSE mount is a single `echo 1 >/sys/fs/fuse/connection/NNNN/abort`, the only challenge is finding the right ID. (See https://github.com/bazil/fuse/blob/fb710f7dfd05053a3bc9516dd...)

libfuse

Posts with mentions or reviews of libfuse. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-02-18.
  • Wddbfs – Mount a SQLite database as a filesystem
    3 projects | news.ycombinator.com | 18 Feb 2024
    I suspect if you've run into problems with a lot of things built on FUSE, the problem is FUSE.

    Yes, s3fs and sshfs can both leave the system in an unstable state. For example, there can be a dead mount which is impossible to unmount, and in severe cases, blocks a clean reboot.

    A file system in user space (or in network space) should NEVER break the system, no matter what happens in user space (or in network space). Most network file systems try to respect this (albeit with mixed success). FUSE does not.

    I'm not claiming FUSE cannot be made to work. Just that it's very bad since (1) plenty of smart people clearly failed to do so (2) the badness it leaves behind should be more than it's permitted to.

    I can point to specific issues, but at the end of the day, that's neither here nor there. At the end of the day, something like:

    https://github.com/libfuse/libfuse/blob/master/example/poll....

    Is about a hundred times more complicated than it should be. It should not require memsets, pthread mutexes, or flags, and should probably have an implementation in a modern, high-level language. To a large extent, that's the point of moving things out of the kernel.

    I'm even perhaps okay with being permitted to do low-level operations for a particularly performance-constrained subsystem, but that's not 95% of the uses of something like FUSE.

    Footnote: I actually enjoyed writing low-level code like this a lot, when computers were in the single-digit to triple-digit MHz range, and we didn't need to worry about people breaking in over a ubiquitous worldwide internet, but I left that mindset behind decades ago. Right now, I want code to be stable, simple, auditable, and secure.

  • Spacedrive – an open source cross-platform file explorer
    7 projects | news.ycombinator.com | 10 Oct 2023
  • Sensenmann: Code Deletion at Scale
    3 projects | news.ycombinator.com | 30 Apr 2023
    I wrote the original version for a previous employer mostly in Python.

    I was about to recreate a new version in Rust. And started with fixing up libfuse https://github.com/libfuse/libfuse/pulls?q=author%3Amatthias... and the Rust equivalent https://github.com/cloud-hypervisor/fuse-backend-rs/pulls?q=...

    Your project is also interesting. I don't plan on ever adding write support. The old Python version was already using git as a library via gitpython, instead of shelling out via the command line. The new version will use Rust's gix.

    Performance, even for the old Python version, was pretty decent. That probably came from using git via a library and being careful about fuse caching. The old version also already supported opening arbitrary commits, tags and branches, they were represented as different folders.

  • [Engineering_Stuff] S3FS-FUSE - Permet de monter votre lien de seau S3 / Minio vers votre répertoire local
    2 projects | /r/enfrancais | 28 Apr 2023
  • s3fs-fuse - allows to mount your s3/minio bucket link to your local directory
    3 projects | /r/engineering_stuff | 30 Mar 2023
    s3fs allows Linux, macOS, and FreeBSD to mount an S3 bucket via FUSE(Filesystem in Userspace). s3fs makes you operate files and directories in S3 bucket like a local file system. s3fs preserves the native object format for files, allowing use of other tools like AWS CLI.
  • FUSE Filesystem
    3 projects | dev.to | 5 Jan 2023
  • I used Python libfuse bindings to build a filesystem on top of a immutable database
    3 projects | /r/Python | 13 Sep 2022
  • Rule
    1 project | /r/196 | 11 Sep 2022
    FUSEs your files
  • How to Use Sshfs on OpenBSD
    2 projects | news.ycombinator.com | 23 Jul 2022
    The situation is much worse than I had imagined; the parent project, libfuse, is also in need of a maintainer.

    https://github.com/libfuse/libfuse

  • What is FUSE?
    1 project | /r/Ubuntu | 7 May 2022

What are some alternatives?

When comparing fuse and libfuse you can also consider the following projects:

litefs - FUSE-based file system for replicating SQLite databases across a cluster of machines

VeraCrypt - Disk encryption with strong security based on TrueCrypt

rqlite - The lightweight, distributed relational database built on SQLite.

php-fuse - PHP FFI bindings for libfuse

litestream - Streaming replication for SQLite.

VL.Fuse - A library for visually programming on the GPU, built to enable rapid workflows and modular approaches to accelerated graphics, logic and computation.

fuse-filesystem - In memory filesystem of top of FUSE

squashfs-tools - tools to create and extract Squashfs filesystems

tigerbeetle - A distributed financial accounting database designed for mission critical safety and performance. [Moved to: https://github.com/tigerbeetledb/tigerbeetle]

sshfs - A network filesystem client to connect to SSH servers

tagfs - Fuse tag file system