| 1 |
seqdiag { |
| 2 |
app; |
| 3 |
fuse [label="bazil.org/fuse"]; |
| 4 |
fusermount; |
| 5 |
kernel; |
| 6 |
mounts; |
| 7 |
|
| 8 |
app; |
| 9 |
fuse [label="bazil.org/fuse"]; |
| 10 |
fusermount; |
| 11 |
kernel; |
| 12 |
mounts; |
| 13 |
|
| 14 |
app -> fuse [label="Mount"]; |
| 15 |
fuse -> fusermount [label="spawn, pass socketpair fd"]; |
| 16 |
fusermount -> kernel [label="open /dev/fuse"]; |
| 17 |
fusermount -> kernel [label="mount(2)"]; |
| 18 |
kernel ->> mounts [label="mount is visible"]; |
| 19 |
fusermount <-- kernel [label="mount(2) returns"]; |
| 20 |
fuse <<-- fusermount [diagonal, label="exit, receive /dev/fuse fd", leftnote="on Linux, successful exit here\nmeans the mount has happened,\nthough InitRequest might not have yet"]; |
| 21 |
app <-- fuse [label="Mount returns\nConn.Ready is already closed"]; |
| 22 |
|
| 23 |
app -> fuse [label="fs.Serve"]; |
| 24 |
fuse => kernel [label="read /dev/fuse fd", note="starts with InitRequest"]; |
| 25 |
fuse -> app [label="Init"]; |
| 26 |
fuse <-- app [color=red]; |
| 27 |
fuse -> kernel [label="write /dev/fuse fd", color=red]; |
| 28 |
kernel -> kernel [label="set connection\nstate to error", color=red]; |
| 29 |
fuse <-- kernel; |
| 30 |
... conn.MountError == nil, so it is still mounted ... |
| 31 |
... call conn.Close to clean up ... |
| 32 |
} |