2023, rewritten 2026

ext2 file system simulator in C

An ext2-style file system on a simulated 256 MiB disk, with a small shell to drive it. A 2026 rewrite of an open-source emulator in modern C23: 11 bugs found and fixed, each with a regression test, and checked by a fuzzer against an in-memory model, fault injection at every disk operation and an e2fsck-style consistency check.

ext2 file system simulator in C

Built with

  • C23
  • CMake
  • libFuzzer
  • Sanitizers
  • clang-tidy

Write-ups

  1. Bugs in a teaching ext2 simulator, and the tests that keep them fixed

    A macro that wrote into a data block, an allocator that saw 2,048 blocks, XOR frees, and tests: fsck-style checks, fault injection, a model fuzzer.

    Read →