Skip to content- Sources: primary
- Summary: Antithesis replaced a patched LazyFS with Amnesia, a Rust FUSE filesystem that tracks inodes and keeps volatile and durable state in memory, so it can forget unsynced data at an emulated power failure. It also returns EIO on fsync while marking pages clean, splits and reorders reads and writes, and fires faults before, during or after each syscall. It found a bbolt case where an EIO on the meta page fsync, then a restart that read the cached meta page, let later commits reuse live pages so bbolt panics on every open.
- Why it matters: Storage code that retries a failed fsync or trusts page cache contents after a crash can corrupt data, and this shows a concrete way to test for it.
- Background: Writes land in the kernel page cache and reach disk later through writeback, and fsync forces them out. In the 2018 fsyncgate case, PostgreSQL learned that Linux marks pages clean after a failed fsync, so a retried fsync can succeed while the data never reaches disk. A process kill keeps the page cache, so only an emulated power loss tests what fsync actually persisted.