MedEx.Storage.File (med_ex v0.2.0)

Copy Markdown View Source

POSIX single-writer adapter. A host grants each attempt a distinct, trusted local directory. Reconciliation requires prior fencing and confirmed quiescence. Chunks and snapshots are installed exclusively and synced before journal ACKs.

Summary

Functions

Read only a bounded regular chunk whose exact length and SHA-256 match its technical index.

Finish installing an already journaled terminal index under an externally quiesced fence.

Read a validated prefix and reconcile any previously acknowledged generation. Never truncates or appends.

Functions

read_segment(dir, seg)

Read only a bounded regular chunk whose exact length and SHA-256 match its technical index.

reconcile_index(dir, opts)

Finish installing an already journaled terminal index under an externally quiesced fence.

recover(dir, opts)

Read a validated prefix and reconcile any previously acknowledged generation. Never truncates or appends.