Skip to main content

Crate store_io_sim

Crate store_io_sim 

Source
Expand description

§store-io-sim

A deterministic simulated platform for store-io. See world for the device, cache, metadata and crash model, fault for injectable faults, and platform for the Platform / Queue implementation.

Same seed and same calls give the same run, byte for byte (world::World::trace_hash).

Re-exports§

pub use fault::FaultPlan;
pub use fault::FlushFailure;
pub use platform::SimDir;
pub use platform::SimFile;
pub use platform::SimLock;
pub use platform::SimPlatform;
pub use platform::SimQueue;
pub use platform::SimWaker;
pub use world::CrashMode;
pub use world::DeviceKind;
pub use world::Fate;
pub use world::FileId;
pub use world::SimConfig;
pub use world::World;

Modules§

fault
Fault injection plan.
platform
SimPlatform: the simulator behind the store-io-platform traits.
rng
The simulator’s only source of randomness: xoshiro256** seeded through SplitMix64. In-tree so a seed means the same run on every platform and compiler, forever.
world
The simulated world: one device with a volatile write cache, the files and directories on it, and the rules for what survives a crash.