cberner / fuser

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

Filesystem hangs sometimes on Android #287

Open MarkusTieger opened 5 months ago

MarkusTieger commented 5 months ago

In some cases the filesystem starts hanging. Exact same behavior like in this issue: https://github.com/cberner/fuser/issues/271 (except there is no panic, at least nothing is printed to the terminal).

I also used some debugging messages on all implementations on the Filesystem trait. Every function that gets called, also returns and it doesn't hang on my code.

The last debug log message that I got before it hang was:

[2024-06-04T12:11:28Z DEBUG fuser::request] FUSE(5850377) ino 0x0000000000000006

This request didn't call one of my implemented functions.

When rebooting (of the android device) this log message was printed (before the filesystem got destroyed):

[2024-06-04T12:49:21Z WARN  fuser::request] Request RequestId(5850377): Failed to send reply: No such file or directory (os error 2)

(still no function call on the Filesystem trait btw)

This behavior was observed on Android 14 with root privileges (Magisk), libfuse3.so from termux, kernel 4.14.344, features: abi-7-31. Almost everytime that happend was directly after one or two (or more) large file(s) got written to the filesystem (9 - 16 GB with 4096 bytes / request)

Although Android is in the title, i do not know if this does only happen there.