Skip to main content

Module storage

Module storage 

Source
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_all barriers and sometimes parent-directory sync after renames.

Structs§

FsDirectory
Filesystem-backed Directory rooted at a local path.
MemoryDirectory
In-memory Directory used for tests.

Enums§

FlushPolicy
Policy for when writers call Write::flush().

Traits§

Directory
Trait for directory-like storage backends.

Functions§

sync_file
Make the data of path durable (fdatasync).
sync_parent_dir
Attempt to fsync/sync_all the parent directory of path.