project-machine / puzzlefs

Apache License 2.0
378 stars 18 forks source link

Foreground mount process blocked on writing to the init pipe on failure #107

Closed ariel-miculas closed 10 months ago

ariel-miculas commented 10 months ago

This process is blocked writing to the named pipe:

$ target/release/puzzlefs mount -f -i /tmp/tmp.TPCgSPsS8j -o allow_other /tmp/oci-simple first_try /tmp/puzzle
[2023-08-28T15:18:33Z INFO  fuser::session] Mounting /tmp/puzzle

until other process reads from the pipe:

$ head -c1 /tmp/tmp.TPCgSPsS8j
f

then it shows the error:

Error: fs error: fusermount3: option allow_other only allowed if 'user_allow_other' is set in /etc/fuse.conf

Caused by:
    fusermount3: option allow_other only allowed if 'user_allow_other' is set in /etc/fuse.conf
ariel-miculas commented 10 months ago

The current behavior is fine since the user expects a status to be sent via the named pipe.