Skip to content

data/cache.hot lists the blocks that were hot, so a restarted process can warm its block cache. It is a derived cache: sealed whole with AAD "stc-warm-v1" ‖ 5 × 0x00 (16 bytes), written through cache.hot.tmp and renamed, and ignored and rebuilt when it fails to open or carries an unknown magic.

Field Encoding Meaning
magic ascii "SWM1"
count u32 LE number of entries; the file is at most 4 Mi entries (4,194,304) long
entry, repeated count times 12 bytes file_id u64, block u32

Entries name files by id; ids that are not live files are ignored, and a file whose length does not equal 8 + 12 × count bytes of plaintext is ignored.