Closed melix closed 3 years ago
Hey, @melix!
fuse_main_real
is expected to block and only return when it's unmounted, effectively "spending" the thread, see
https://github.com/libfuse/libfuse/blob/77d662459a0fcdf358d515477d33795837e859d5/lib/helper.c#L279-L358
The non-blocking mode of jnr-fuse
is a small "convenience" method that performs the same operation on a background thread.
mmm, I see. I would suggest to improve the docs a bit, it's a bit confusing :)
Hi,
I've been playing with this API (version 0.5.5) and something looks broken under my OS. I'm using Linux Mint 20.1, kernel 5.8.0-43-generic.
I've basically tried to run the "in memory file system" example. What I see is that when the
mount
option is set to block, then themount
method will never return. However, the file system is mounted and created, and when incd
from the CLI to the mount point, I can create and read files:If I use the non-blocking version, then mount returns immediately as expected, but ends up with the timeout exception error. Again, I can
cd
to the mounted directory and create files.So all in all, it looks like the mount operation succeeded, but for some reason the call to
libFuse.fuse_main_real
does not return.