#9p #in-memory #directory #byte

app nine-memfs

A simple in-memory 9p filesystem

1 unstable release

Uses old Rust 2015

0.2.0 Nov 6, 2018

#1095 in Filesystem

23 downloads per month

MPL-2.0 license

36KB
951 lines

nine-memfs

A simple in-memory 9p filesystem.

Currently only works over unix sockets, is single threaded, and probably* buggy.

* definitely buggy

TODO

  • exclusive open
  • permissions audit
  • numeric / size correctness audit

Edge cases to test

Dir bytes

  1. have a dir with some amount of children
  2. open the dir for reading, read some of the bytes
  3. invalidate the bytes somehow (write to child changing length, wstat child, etc.)
  4. read the dir again from where you left off

Dependencies

~0.7–1.3MB
~30K SLoC