{
  "slug": "dfscq",
  "term": "DFSCQ",
  "aliases": [
    "Deferred-write FSCQ"
  ],
  "definition": "DFSCQ is a verified research filesystem that permits deferred durability while specifying crash outcomes through ordered metadata and independently persisted file data.",
  "note": "DFSCQ defers writes: metadata persists in order, while file data may persist out of order. [dfscq17]\n\nIts fsync flushes all pending metadata, including unrelated directories. This is not a portable Linux guarantee. fdatasync needs block stability: the block list must grow monotonically across possible metadata states. Truncating breaks this; a log flush restores it. [dfscq17] [linux-fsync]\n\nA, B and C are distinct storage blocks; list position gives the logical offset. Truncate A,B to A, then regrow to A,C. Both endpoints have two blocks. Length alone misses the changed mapping: the model reports B at offset 1 as uncovered. A modeled log flush retains only A,C; it does not simulate data writes. This is not a DFSCQ reproduction. [block-model] [block-results]\n\nHash nontermination is a proof convention: a modeled collision does not return. The runtime function does not loop on collisions. The paper bridges this gap with a collision-resistance assumption, not a collision detector. [dfscq17]\n\nThe pinned interpreter uses CRC32 for Hash and Hash2. This is a revision-specific source observation, not a reproduction of the evaluated binary. The toy hash walkthrough is not a DFSCQ execution or collision-rate estimate. [hash-runtime] [hash-guide]\n\nUnmaintained prototype; Haskell/FUSE components are unverified. [artifact]",
  "status": "research",
  "advantages": [],
  "limitations": [
    {
      "text": "The system and specification are single-threaded; the proof does not cover concurrent system calls.",
      "citationIds": [
        "dfscq17"
      ]
    },
    {
      "text": "Log bypass avoids the journal for data writes, not the buffer cache; it is distinct from direct I/O.",
      "citationIds": [
        "dfscq17"
      ]
    }
  ],
  "related": [
    "fscq",
    "crash-hoare-logic",
    "directory-fsync",
    "fdatasync",
    "write-ahead-log",
    "direct-io"
  ],
  "supersedes": [],
  "supersededBy": [],
  "firstSeen": null,
  "lastSeen": null,
  "updated": "2026-12-04",
  "citations": [
    {
      "id": "dfscq17",
      "title": "Chen et al. Verifying a high-performance crash-safe file system using a tree specification. SOSP 2017; sections 4-6. DOI: 10.1145/3132747.3132776.",
      "url": "https://pdos.csail.mit.edu/papers/dfscq.pdf",
      "accessed": "2026-12-04"
    },
    {
      "id": "artifact",
      "title": "FSCQ authors. Research-prototype warning and branch identities. README at revision 2c7ef9c268fd.",
      "url": "https://github.com/mit-pdos/fscq/blob/2c7ef9c268fd79a81b26b44ef720f8e6a1e938a0/README.md",
      "accessed": "2026-12-04"
    },
    {
      "id": "linux-fsync",
      "title": "Linux man-pages: fsync(2), DESCRIPTION; file data, metadata and containing-directory entry.",
      "url": "https://man7.org/linux/man-pages/man2/fsync.2.html",
      "accessed": "2026-12-04"
    },
    {
      "id": "hesela-source-map",
      "title": "Hesela: DFSCQ source identity, section locators and review scope.",
      "url": "https://hesela.dev/research/dfscq/source-map.json",
      "accessed": "2026-12-04"
    },
    {
      "id": "block-model",
      "title": "Hesela: file length and block identity, worked guide with executable model and tests.",
      "url": "https://hesela.dev/research/dfscq-block-identity/README.md",
      "accessed": "2026-12-04"
    },
    {
      "id": "block-results",
      "title": "Hesela: generated block-identity walkthrough; pedagogical model, not measured filesystem data.",
      "url": "https://hesela.dev/research/dfscq-block-identity/results.json",
      "accessed": "2026-12-04"
    },
    {
      "id": "hash-runtime",
      "title": "DFSCQ interpreter at revision 2c7ef9c268fd: crc32_word_update and Hash/Hash2 runtime clauses.",
      "url": "https://github.com/mit-pdos/fscq/blob/2c7ef9c268fd79a81b26b44ef720f8e6a1e938a0/src/hslib/Interpreter.hs",
      "accessed": "2026-12-04"
    },
    {
      "id": "hash-guide",
      "title": "Hesela: proof versus runtime hash semantics, pinned source review and executable teaching model.",
      "url": "https://hesela.dev/research/dfscq-hash-semantics/README.md",
      "accessed": "2026-12-04"
    }
  ],
  "provenance": [
    "Primary-source review of the SOSP 2017 contract and implementation discussion, checked against the authors' pinned README and Linux interface documentation. No Coq proof rerun, prototype execution or benchmark replication."
  ]
}
