roadmap

Stage 2: the sector interface, the boot sector, and the oracle's pin

Appendix to 813. file_allocation_table. It records what stage 2 built, the provenance of the names it minted, and where the oracle's dev-dependency pin, which this stage did not need, is recorded.

What stage 2 built

The evidence:

check result
Kani, four harnesses over every 512-byte sector what_the_parse_accepts_lies_inside_the_volume, the_fat_type_is_the_cluster_counts, the_table_has_an_entry_for_every_cluster, only_a_data_cluster_has_sectors; 27 seconds together
falsification sweep every patch red, each at its own assertion
fuzz target file_allocation_table_boot_sector 26 million executions in 120 seconds, no crash
cargo mutants --in-diff 168 caught, 8 unviable, none missed
line coverage boot_sector.rs and sector.rs 100%
fixtures six boot sectors dosfstools' mkfs.fat 4.2 formatted (FAT12, FAT16 and FAT32, at 512 and 4096 bytes), rebuilt by tests/fixtures/make-boot-sectors.sh

#1803's macOS images are 64 MiB each and are not in the tree, and no macOS host was at hand, so this stage reads no macOS-made boot sector. Stage 4 reads both images to their hashes.

Names

The crate's sources carry Name: blocks until the crate breaks out, when the change that breaks it out strips them (ruled 2026-10-26 UTC). The ruling of 2026-10-25 (UTC) ratified every name below and refused tables for BootSector::table_count. The table gives the reason for each:

name why this one
SectorDevice the caller supplies a device it addresses by sector. Not BlockDevice, the word embedded-sdmmc and hadris-fat use: FAT's unit is the sector, and this tree's own block protocol is a different thing
SectorSize the four sizes the specification permits, as an enum, so no wrong size exists to pass
BootSector the specification's name for sector 0
FatType the specification's term ("FAT type"). Fat12, Fat16 and Fat32 keep Microsoft's spelling, as a name arriving across somebody else's format does
RootDirectory where the root lives: a region on FAT12 and FAT16, a cluster on FAT32
ParseError, ReadError a refusal of the bytes, and a failure of the read that fetched them
boot_sector, sector the modules, named for the on-disk structure each one parses

The oracle's pin

Stage 2 needed no oracle: its tests check a boot sector against mkfs.fat's output. A ruling of 2026-10-25 (UTC) set the pin for stage 3, which reads tables rust-fatfs wrote: lamfat = "=0.4.3", a dev-dependency of this crate alone. The stage 3 appendix records the rule, the fsck check its condition asked for, and what holds it.