cberner / fuser

Filesystem in Userspace (FUSE) for Rust
MIT License
775 stars 109 forks source link

Why does `mount2()` not return in `fuser` but in `libfuse` #291

Open kusnezoff-alexander opened 1 month ago

kusnezoff-alexander commented 1 month ago

As said in the docs: This function will not return until the filesystem is unmounted. (~see docs)

The reference implementation libfuse does in fact return after a mount so I would say this is some kind of unexpected behavior for this rust-implementation.

Is there a specific reason why mount2() is implemented to not return (unless unmounted) in fuser?

cberner commented 1 month ago

The behavior you're looking for is provided by spawn_mount2()