jcnelson / vdev

A device-file manager for *nix
GNU General Public License v3.0
101 stars 13 forks source link

vdevfs: add RAM file support #15

Closed jcnelson closed 9 years ago

jcnelson commented 9 years ago

Since vdevd now writes metadata and such to /dev/API/..., vdevfs needs to catch these writes and (preferably) store their contents in RAM.

jcnelson commented 9 years ago

Actually, vdevfs will want to write data to the underlying filesystem, so if it crashes, the device nodes and information will be preserved. We'll mount a tmpfs on /dev/vdev instead, to store vdev's metadata.

jcnelson commented 9 years ago

On second thought, one workflow we'll want to support is: (1) start vdevd to populate /dev (2) mount /usr (3) mount vdevfs on /dev

This means vdevfs will need to plumb I/O through to the underlying filesystem.

jcnelson commented 9 years ago

Implemented as of 5fb243fd845da81099fdf28f572b58fafceb721f