Skip to main content

LEGACY_VERSION

Constant LEGACY_VERSION 

Source
const LEGACY_VERSION: u32 = 1;
Expand description

The version blocks written before FORMAT_KEY existed are treated as.

They are byte-identical to version 1 — the key was added without changing anything else about the file — so absent means 1 rather than “refuse it”. A format change that orphaned every block already on somebody’s disk would be a worse bug than the one the version exists to catch.