Expand description
vortex-fs — Virtual file system with deterministic fault injection.
Provides a VortexFs trait that mirrors std::fs operations. Two
implementations are included:
RealFs— production pass-through tostd::fs(zero overhead).SimFs— in-memory filesystem with configurable fault injection.
§Example
use vortex_fs::{SimFs, VortexFs};
let mut fs = SimFs::new(42);
fs.write_file("/data/hello.txt", b"world").unwrap();
let data = fs.read_file("/data/hello.txt").unwrap();
assert_eq!(data, b"world");Structs§
- File
Metadata - Metadata about a file or directory.
- RealFs
- Production filesystem implementation — delegates to
std::fs. - SimFs
- Deterministic in-memory filesystem with fault injection.
Enums§
- File
Type - File type (regular file or directory).
- Vortex
FsError - Error type for virtual filesystem operations.
Traits§
- Vortex
Fs - The filesystem abstraction boundary.
Type Aliases§
- Vortex
FsResult - Result type alias for filesystem operations.