Skip to content

Every file in a store is sealed with one of two kinds of key, changes in one of a few ways, and is either authoritative or rebuildable. The table gives all three facts for each kind.

File Mutability Sealed with Authoritative?
keys rewritten atomically master key yes
wal/seg-* append (preallocated, blocks written once per generation) data key yes
data/MANIFEST append; rewritten atomically data key yes
data/*.stc immutable after fsync data key yes (when listed in MANIFEST)
data/*.stci immutable data key (it is a byte copy) yes (when listed as remote)
ZONES, SPANS, TIERHEAT, cache.hot, rcache/ rewritten atomically data key no
  • The keyring file is the only file sealed directly by the master key. Everything else is sealed with a data key, see Key hierarchy.
  • A data file is authoritative only when the MANIFEST lists it. A file that is not listed is an orphan and is removed at open, see Lifecycle and atomic install.
  • A .stci file is a byte copy of the tail of a remote file, so it is sealed the same way as the file it copies. It is authoritative when the MANIFEST lists the file as remote.
  • The five derived caches are not authoritative. Any unreadable or unknown-magic file is ignored and rebuilt, never migrated (SPEC V454). See Derived caches.