fuse3 icon indicating copy to clipboard operation
fuse3 copied to clipboard

External unmount does not finish the the mount task

Open wvffle opened this issue 1 year ago • 2 comments

I've tested both my filesystem and the path_memfs example and it seems like, when I do umount mount-point in terminal, it does not finish the mount task, leaving the program running.

I'm using tokio runtime.

wvffle avatar Jun 29 '24 08:06 wvffle

it looks like when using unprivileged mode, the session can't realize the fs is umounted by umount cmd

Sherlock-Holo avatar Jul 19 '24 07:07 Sherlock-Holo

My previous implementation with fuser crate didn't have such issue. Maybe they found a way to handle it?

wvffle avatar Jul 19 '24 09:07 wvffle

My previous implementation with fuser crate didn't have such issue. Maybe they found a way to handle it?

I just published #107 as a solution for this issue.

In fuser it's much easier handled by a simple blocking read() call on /dev/fuse, which will report the unmount event by returning an ENODEV result. In fuse3 we have to instruct the async file io polling mechanism in advance, that we are not only waiting for incoming requests resp. readable state changes, but also want to get ERROR notifications. Otherwise, we will never get this unmount indicator.

mash-graz avatar Sep 07 '24 00:09 mash-graz

try 0.7.3 version, it merged #107 and should fix this problem

Sherlock-Holo avatar Sep 18 '24 06:09 Sherlock-Holo