Debian Codegraph @

doc/mount-sequence.md

raw symbols SCIP
1 # The mount sequence
2
3 FUSE mounting is a little bit tricky. There's a userspace helper tool
4 that performs the handshake with the kernel, and then steps out of the
5 way. This helper behaves differently on different platforms, forcing a
6 more complex API on us.
7
8 ## Successful runs
9
10 On Linux, the mount is immediate and file system accesses wait until
11 the requests are served.
12
13 ![Diagram of Linux FUSE mount sequence](mount-linux.seq.png)
14
15 On OS X, the mount becomes visible only after `InitRequest` (and maybe
16 more) have been served.
17
18 ![Diagram of OSXFUSE mount sequence](mount-osx.seq.png)
19
20
21 ## Errors
22
23 Let's see what happens if `InitRequest` gets an error response. On
24 Linux, the mountpoint is there but all operations will fail:
25
26 ![Diagram of Linux error handling](mount-linux-error-init.seq.png)
27
28 On OS X, the mount never happened:
29
30 ![Diagram of OS X error handling](mount-osx-error-init.seq.png)