Per-file stamp
The per-file stamp says which format the bytes of one SEAM data file conform to. It is not stored in the file. It lives in the MANIFEST as tag 5.
How it is computed
Section titled “How it is computed”The stamp is the minimum of the writer’s current format and the stamps of every source file whose blocks were copied verbatim into the new file. The result:
- Flush, compaction and rewrite outputs carry the writer’s format, unless blocks were copied through unchanged.
- A file that contains a verbatim-copied block from an older file keeps the older stamp, since those bytes still follow the older layout (SPEC V458).
Format pre-4 is the SEAM 1 layout. pre-1 to pre-3 are pre-release stamps.
What it is used for
Section titled “What it is used for”- Migration finds local files whose stamp is below the current one and upgrades them, see Migration.
- Reading uses each artifact’s own version byte, so a file is always read through its own path.
Footer revisions 4 and 5 are self-describing and were added without a stamp bump, see Footer.