Expand description
Binding tables: longest-prefix substitution between guest and host paths, and the descriptors the path walk starts from.
Structs§
- DirCache
O_PATHdescriptors of canonical guest directories already walked, shared by every view of one supervisor.- Fs
- The guest filesystem view: a root directory plus bind mounts.
- Pin
- The host side of the root or of a binding, held open once.
Constants§
- DIR_
CACHE_ 🔒MAX - Directory descriptors kept in the cache before it is cleared wholesale.
Statics§
- NEXT_
VIEW_ 🔒ID - Source of view identifiers, unique for the life of the supervisor.
Functions§
- is_
prefix - Whether
prefixispathitself or a directory ancestor of it. - join_
prefix - Concatenates a prefix and a
/-leading (or empty) remainder without doubling slashes. - open_
path 🔒 - Opens a host path as an
O_PATH|O_CLOEXECdescriptor with extraflags. - resolve_
host 🔒 - The real host path behind a binding or the root, symlinks resolved.
- rest_
after - The part of
pathafterprefix, keeping its leading slash.
Type Aliases§
- Cache
Key 🔒 - A cache entry’s key: the view’s id and the canonical guest directory.