Skip to main content

Module fs

Module fs 

Source
Expand description

Guest filesystem view: the root, the bindings, and path translation.

  • binding holds the prefix tables for both directions.
  • canon walks a guest path component by component, resolving symlinks inside the guest namespace (the port of PRoot’s canon.c).
  • glue creates the mount points of bindings so listings show them.
  • translate turns a tracee’s (dirfd, path) pair into a host path and back.

Re-exports§

pub use binding::Fs;

Modules§

binding
Binding tables: longest-prefix substitution between guest and host paths, and the descriptors the path walk starts from.
canon
Component-wise canonicalization of guest paths (port of PRoot’s canon.c), walked on descriptors.
glue
Mount points for bindings, created where the guest would list them.
translate
Translating a tracee’s (dirfd, path) into the object to act on, or into a host path, and back.