Expand description
Storage abstraction for durability.
Vocabulary note:
- Some durability primitives require atomicity (e.g. atomic rename/write) and integrity (checksums, framing).
- Stable-storage durability (survives power loss after reporting success)
additionally requires explicit
fsync/sync_allbarriers and sometimes parent-directory sync after renames.
Structs§
- FsDirectory
- Filesystem-backed
Directoryrooted at a local path. - Memory
Directory - In-memory
Directoryused for tests.
Enums§
- Flush
Policy - Policy for when writers call
Write::flush().
Traits§
- Directory
- Trait for directory-like storage backends.
Functions§
- sync_
file - Make the data of
pathdurable (fdatasync). - sync_
parent_ dir - Attempt to
fsync/sync_allthe parent directory ofpath.