{
  "slug": "cuttlefs",
  "term": "CuttleFS",
  "aliases": [],
  "definition": "CuttleFS is a FUSE-based research filesystem that emulates selected filesystem reactions to failed data writes during synchronization.",
  "note": "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. [atc20]\n\nExt4-data models delayed reporting, not a complete journal. Btrfs restores mappings after failures; profiles are not whole filesystems. [helper]\n\nA 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. [hesela-helper]\n\nIn 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. [hesela-helper]\n\nHoward Chu challenged the LMDB sector-failure scenario's physical applicability. [lmdb-fault-objection] The paper specifies transient faults. [atc20] Whole-page execution does not settle this dispute. [hesela-helper]\n\nSector size alone gives no atomic-write contract; the ext4 atomic path needs supported hardware and direct I/O. [ext4-atomic-contract]\n\nAfter 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. [hesela-helper]\n\nThis 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. [linux-errseq]",
  "related": [
    "fsync",
    "fuse",
    "writeback-error",
    "page-cache",
    "fault-injection",
    "crash-consistency"
  ],
  "citations": [
    {
      "id": "atc20",
      "title": "Rebello et al.: Can Applications Recover from fsync Failures? USENIX ATC 2020, sections 3.2 and 4.1-4.3",
      "url": "https://research.cs.wisc.edu/adsl/Publications/atc20-cuttlefs.pdf",
      "accessed": "2026-12-05"
    },
    {
      "id": "helper",
      "title": "CuttleFS fsyncs.py at 8ddc684d4fc9167778bfe1cddfbbae8a3eabe15e",
      "url": "https://github.com/WiscADSL/cuttlefs/blob/8ddc684d4fc9167778bfe1cddfbbae8a3eabe15e/cuttlefs/fsyncs.py",
      "accessed": "2026-12-05"
    },
    {
      "id": "sequence",
      "title": "CuttleFS failseq.py: transient and continuing failure sequences",
      "url": "https://github.com/WiscADSL/cuttlefs/blob/8ddc684d4fc9167778bfe1cddfbbae8a3eabe15e/cuttlefs/failseq.py",
      "accessed": "2026-12-05"
    },
    {
      "id": "hesela-helper",
      "title": "Hesela: pinned CuttleFS helper execution, fixture and limits",
      "url": "https://hesela.dev/research/cuttlefs-helper/README.md",
      "accessed": "2026-12-05"
    },
    {
      "id": "lmdb-fault-objection",
      "title": "Howard Chu (9 February 2024): LMDB and fsync failures",
      "url": "https://lists.openldap.org/hyperkitty/list/openldap-devel@openldap.org/thread/YUUKXVYXA347IWW3UKRS6NJHBU4FEE6M/",
      "accessed": "2026-12-05"
    },
    {
      "id": "ext4-atomic-contract",
      "title": "Linux v6.16: ext4 atomic block write requirements",
      "url": "https://www.kernel.org/doc/html/v6.16/filesystems/ext4/overview.html#atomic-block-writes",
      "accessed": "2026-12-05"
    },
    {
      "id": "linux-errseq",
      "title": "Linux v6.12: errseq_sample and already-seen errors",
      "url": "https://github.com/torvalds/linux/blob/adc218676eef25575469234709c2d87185ca223a/lib/errseq.c",
      "accessed": "2026-12-05"
    }
  ],
  "status": "research",
  "advantages": [
    {
      "text": "Selected accesses can fail once or continue failing through a configurable fault sequence.",
      "citationIds": [
        "sequence"
      ]
    }
  ],
  "limitations": [
    {
      "text": "The historical application study does not establish failure rates or behavior of current application releases.",
      "citationIds": [
        "atc20"
      ]
    }
  ],
  "supersedes": [],
  "supersededBy": [],
  "firstSeen": null,
  "lastSeen": null,
  "updated": "2026-12-05",
  "provenance": [
    "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."
  ]
}
