cuttlefs · research

CuttleFS

CuttleFS is a FUSE-based research filesystem that emulates selected filesystem reactions to failed data writes during synchronization.

Related Observatory article: Read on hesela.com

A private userspace page cache separates bytes, dirty state and error timing. Trace mode counts backing writes, not application calls; faults target file blocks or sectors. [1]

Ext4-data models delayed reporting, not a complete journal. Btrfs restores mappings after failures; profiles are not whole filesystems. [2]

A synthetic block backend retains old bytes after a rejected overwrite in all four helpers; retries submit nothing. No-fault controls store new bytes. Both fixture sizes read serialized mappings. This is not a mounted-filesystem or power-loss test. [4]

In two-page cases, ordered/XFS/data retain mixed old/new bytes. Btrfs restores old references and discards new blocks, including successful writes. Its early stop is not measured Btrfs scheduling. [4]

Howard Chu challenged the LMDB sector-failure scenario's physical applicability. [5] The paper specifies transient faults. [1] Whole-page execution does not settle this dispute. [4]

Sector size alone gives no atomic-write contract; the ext4 atomic path needs supported hardware and direct I/O. [6]

After A consumes its error, closing the last pending observer B without checking leaves an empty notification set; new C receives EIO. If B checks first, C receives zero. Bytes and write count stay unchanged. [4]

This helper is not an errseq emulator. Linux v6.12 errseq_sample starts a new observer past an already-seen error; an unseen error yields a zero cursor. That source contract differs from the helper's close-pending case, not from a measured kernel run. [7]

Relations

related
fsync, FUSE, Writeback error, Page cache, Fault injection, Crash consistency

Advantages

  • Selected accesses can fail once or continue failing through a configurable fault sequence. [3]

Limitations

  • The historical application study does not establish failure rates or behavior of current application releases. [1]

Citations

  1. Rebello et al.: Can Applications Recover from fsync Failures? USENIX ATC 2020, sections 3.2 and 4.1-4.3 (accessed 2026-12-05)
  2. CuttleFS fsyncs.py at 8ddc684d4fc9167778bfe1cddfbbae8a3eabe15e (accessed 2026-12-05)
  3. CuttleFS failseq.py: transient and continuing failure sequences (accessed 2026-12-05)
  4. Hesela: pinned CuttleFS helper execution, fixture and limits (accessed 2026-12-05)
  5. Howard Chu (9 February 2024): LMDB and fsync failures (accessed 2026-12-05)
  6. Linux v6.16: ext4 atomic block write requirements (accessed 2026-12-05)
  7. Linux v6.12: errseq_sample and already-seen errors (accessed 2026-12-05)
Sources & caveats
  • ATC 2020 methodology and application protocol were reviewed; the later journal edition is a distinct publication.
  • Artifact README, fsyncs.py, failseq.py and MIT license were reviewed at commit 8ddc684d4fc9167778bfe1cddfbbae8a3eabe15e.
  • Hesela executed only the unchanged synchronization helpers with a stub backend and temporary metadata, not the complete FUSE artifact or the paper's applications.
  • The two-page extension adds eight selected fault cases and four no-fault controls; no failure rates or real-filesystem atomicity are inferred.
  • Reviewed the original transient-fault assumption against the dated LMDB author response and Linux v6.16 atomic-write requirements; physical applicability remains unresolved.
  • The descriptor extension adds 16 sequential fault cases and 16 no-fault controls, retaining the earlier 20 fixture objects; comparison with Linux v6.12 sampling is source review, not kernel execution.

JSON: /data/terms/cuttlefs.json

Published by Hesela team · Updated

Report a correction · Editorial standards · Reuse guidance

Cite this page
Hesela team. CuttleFS. Hesela. 2026-12-05. https://hesela.dev/terms/cuttlefs/