boxfs-memfs
In-memory Copy-on-Write filesystem implementing boxfs-api.
Overview
MemFs implements boxfs_api::Fuse and boxfs_api::Volume purely in memory with structural sharing:
- Directories and extended attributes are
imbl::OrdMaps, and the inode table is animbl::HashMap. Volume::clone_treeclones subtrees with page-level Copy-on-Write sharing (imbl::Vectorof 4 KiBOption<Arc<[u8; 4096]>>pages), so a small edit to a large file after cloning copies only the touched 4 KiB pages.
License
MIT