cberner / fuser

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

issue with auto unmount on android #283

Open master-hax opened 4 months ago

master-hax commented 4 months ago

hi, thanks for making this awesome project. i am cross compiling this library for an old version of android and it works quite well out of the box 👍

however i can't get the MountOption::AutoUnmount to work. i always get this error:

fuse: failed to exec fusermount3: No such file or directory

i see the same behavior whether i enable or disable the "libfuse" feature on this crate. the system doesn't have fusermount3 available natively but fwiw i am able to manually unmount the folder with umount

do you know if there is a workaround for getting auto unmount to work? do i need to patch libfuse? thanks for taking a look.

cberner commented 4 months ago

I'm pretty sure you need fusermount3 installed for auto unmount to work. You can try a C program that links with libfuse3 to see if that works. If it does then it should be possible to implement it in this crate. But I'm pretty sure it won't work that way either.

master-hax commented 2 months ago

hmm yea it looks like fusermount3 logic isn't included in libfuse. sad.