| 1 |
seqdiag { |
| 2 |
app; |
| 3 |
fuse [label="bazil.org/fuse"]; |
| 4 |
wait [label="callMount\nhelper goroutine"]; |
| 5 |
mount_osxfusefs; |
| 6 |
kernel; |
| 7 |
|
| 8 |
app -> fuse [label="Mount"]; |
| 9 |
fuse -> kernel [label="open /dev/osxfuseN"]; |
| 10 |
fuse -> mount_osxfusefs [label="spawn, pass fd"]; |
| 11 |
fuse -> wait [label="goroutine", note="blocks on cmd.Wait"]; |
| 12 |
app <-- fuse [label="Mount returns"]; |
| 13 |
|
| 14 |
mount_osxfusefs -> kernel [label="mount(2)"]; |
| 15 |
|
| 16 |
app -> fuse [label="fs.Serve"]; |
| 17 |
fuse => kernel [label="read /dev/osxfuseN fd", note="starts with InitRequest,\nalso seen before mount exits:\ntwo StatfsRequest calls"]; |
| 18 |
fuse -> app [label="Init"]; |
| 19 |
fuse <-- app [color=red]; |
| 20 |
fuse -> kernel [label="write /dev/osxfuseN fd", color=red]; |
| 21 |
fuse <-- kernel; |
| 22 |
|
| 23 |
mount_osxfusefs <-- kernel [label="mount(2) returns", color=red]; |
| 24 |
wait <<-- mount_osxfusefs [diagonal, label="exit", color=red]; |
| 25 |
app <<-- wait [diagonal, label="mount has failed,\nclose Conn.Ready", color=red]; |
| 26 |
|
| 27 |
// actually triggers before above |
| 28 |
fuse <<-- kernel [diagonal, label="/dev/osxfuseN EOF"]; |
| 29 |
app <-- fuse [label="fs.Serve returns"]; |
| 30 |
... conn.MountError != nil, so it was was never mounted ... |
| 31 |
... call conn.Close to clean up ... |
| 32 |
} |