MANIFEST
The MANIFEST is the file that says which SEAM data files are live, at which level, and where the write-ahead log should resume. Every record in it is sealed, so it is encrypted and authenticated like the rest of the store. It is a log: the first record is a full snapshot and later records are small edits. See file kinds for where it sits in the store directory.
File layout
Section titled “File layout”header (24 B, or 8 B legacy) ‖ record* ‖ (torn tail ignored)record = len u32 ‖ sealed(edit bytes ‖ trailer) len in [32, 64 MiB]- The 24-byte header carries the magic
"STMF", the manifest format, the store stamp and the generation. Every open of any store leaves the file with this header. - The legacy 8-byte header holds only the generation. A file whose first 4 bytes are not
"STMF"is legacy. - Each record is a 4-byte length followed by a sealed edit. The length must be in the range 32 to 64 MiB.
- Record
seqstarts at 0 (the snapshot) and increments per record. It and the header fields are bound into the AAD, so records cannot be reordered, replayed into another generation, or carried across a format stamp.
Where to go next
Section titled “Where to go next”| Page | Topic |
|---|---|
| Reading and the torn tail | Where reading stops and which errors it raises |
| Edit encoding | The byte layout of one version edit |
| File entry (add) | One added file: level, id, size, bounds |
| State and levels | How edits are applied; what each field means |
| Rewrite and format stamp | Why every open rewrites the file |
| Tagged sections | The optional sections at the end of an edit |
Writer behaviour
Section titled “Writer behaviour”Appends are a write followed by fdatasync. A failed append truncates the file to the last good length and halts further logging. The file is also rewritten from scratch on every open, see Rewrite and format stamp.