redtt icon indicating copy to clipboard operation
redtt copied to clipboard

POSIX mount semantics [WIP]

Open favonia opened this issue 5 years ago • 2 comments

This is after #418. The analogy is to treat the current file system as partitions on a disk, and we are building a virtual file system on top of them.

Axioms:

  1. Each redlib file denotes the root of a virtual partition. Each actual file in a virtual partition is defined to be an actual relative path without .. from the root. Symbolic links and others will not identify two files within a virtual partition.
  2. There is no overlapping in actual files between two virtual partitions.
  3. Each redlib file also denotes the root of a virtual file system, with the current virtual partition mounted at root and other virtual file systems mounted at different virtual path according to the redlib file.
  4. Content in the same actual file will be identified, even if accessed through different virtual paths.

favonia avatar Oct 20 '18 11:10 favonia

Can you elaborate on (3)? How does that situation arise?

cangiuli avatar Oct 20 '18 15:10 cangiuli

@cangiuli Library A is mounting libraries B and C, and library B itself is also mounting library C.

favonia avatar Oct 20 '18 17:10 favonia

Implemented by https://github.com/RedPRL/bantorra.

favonia avatar Nov 27 '22 08:11 favonia