m³OS docs GitHub

Component explorer

Virtual File System

The virtual filesystem makes multiple storage backends look like one coherent tree to the rest of the OS.

Responsibilities

  • Present a single namespace across storage backends.
  • Dispatch file operations to the correct filesystem implementation.
  • Keep path resolution and mount behavior consistent.

The virtual file system is introduced in Storage And VFS and later touched by 16 phase(s).

Key files

  • kernel/src/fs/protocol.rs — Phase 8 defines three label numbers in kernel/src/fs/protocol.rs. All use the existing
  • kernel/src/fs/ramdisk.rs — and embedded via include_bytes! in kernel/src/fs/ramdisk.rs.
  • kernel/src/fs/ext2.rs — ext2 volume driver (kernel/src/fs/ext2.rs) — superblock, block groups,
  • kernel-core/src/fs/tmpfs.rs — FileData and DirData in kernel-core/src/fs/tmpfs.rs each hold
  • kernel-core/src/fs/ — Add ext2 data structure definitions to kernel-core/src/fs/: superblock,
  • kernel-core/src/fs/ext2.rs — All on-disk structures are defined in kernel-core/src/fs/ext2.rs for
  • kernel/src/fs/procfs.rs — A new kernel/src/fs/procfs.rs module synthesizes file content on read from kernel