cberner / fuser

Filesystem in Userspace (FUSE) for Rust
MIT License
835 stars 114 forks source link

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

Open kusnezoff-alexander opened 3 months ago

kusnezoff-alexander commented 3 months 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 3 months ago

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