{
  "slug": "dm-loki",
  "term": "dm-loki",
  "aliases": [
    "Device-mapper loki target"
  ],
  "definition": "dm-loki is a research device-mapper target that selects block-write faults through access sequences and records block I/O for failure analysis.",
  "note": "The TOS 2021 study used dm-loki for filesystem-level faults and CuttleFS for application-level experiments. blockviz adds filesystem meaning to recorded block traffic; a before/after disk image cannot reveal every intermediate overwrite. The filesystem study used Linux 5.2.11. [tos21]\n\nAt the pinned artifact revision, the message handler passes the sequence directly to twobitseq_create. Its alphabet is uppercase A, X, W and F; the paper's lowercase notation is not accepted input. A/W allow a selected access and X/F fail it in the reviewed mapping code. [messages] [sequence] [mapping]\n\nThe parser advances through every symbol and repeats the final symbol. Thus WFW describes an allow/fail/allow tail, while WFX continues failing after the second access. A final F repeats too: the constant name FAIL_ONE_WRITE does not override the repeat-last rule. A or X inside a sequence is not an absorbing state. [sequence] [mapping]\n\nHesela executed the unchanged userspace parser for all 5460 nonempty AXWF strings of lengths 1-6, plus 11 longer packing-boundary cases. Each was read five positions beyond its end. Lowercase wwxxw returned -EINVAL; empty input returned -EIO. The downloadable receipt and harness preserve the exact source hashes. These are parser results, not filesystem failure measurements. [hesela-parser]\n\nThe reviewed mapper consumes a sequence symbol from a matching fault-range item before possible partial-bio splitting. A sequence position is not an application write or fsync count. The userspace replay does not validate splitting, concurrent requests, error propagation or current-kernel compatibility. [mapping]",
  "status": "research",
  "advantages": [],
  "limitations": [],
  "related": [
    "cuttlefs",
    "dm-flakey"
  ],
  "supersedes": [],
  "supersededBy": [],
  "firstSeen": null,
  "lastSeen": null,
  "citations": [
    {
      "id": "tos21",
      "title": "Rebello et al. Can Applications Recover from fsync Failures? ACM TOS 17(2), article 12 (2021), DOI 10.1145/3450338; sections 3.2 and 4.1.",
      "url": "https://research.cs.wisc.edu/adsl/Publications/cuttlefs-tos21.pdf",
      "accessed": "2026-12-06"
    },
    {
      "id": "messages",
      "title": "dm-loki b16bc927: _add_fault_item passes the sequence without case conversion",
      "url": "https://github.com/WiscADSL/dm-loki/blob/b16bc9272d007f8e79fa1017e5e6a4a397ba5f60/dm-loki-handle-messages.c",
      "accessed": "2026-12-06"
    },
    {
      "id": "sequence",
      "title": "dm-loki b16bc927: twobitseq validation, cursor and repeat-last implementation",
      "url": "https://github.com/WiscADSL/dm-loki/blob/b16bc9272d007f8e79fa1017e5e6a4a397ba5f60/twobitseq.c",
      "accessed": "2026-12-06"
    },
    {
      "id": "mapping",
      "title": "dm-loki b16bc927: loki_map sequence consumption and partial-bio branches",
      "url": "https://github.com/WiscADSL/dm-loki/blob/b16bc9272d007f8e79fa1017e5e6a4a397ba5f60/dm-loki-main.c",
      "accessed": "2026-12-06"
    },
    {
      "id": "hesela-parser",
      "title": "Hesela: unchanged dm-loki userspace parser replay, results and limits",
      "url": "https://hesela.dev/research/dm-loki-parser/README.md",
      "accessed": "2026-12-06"
    }
  ],
  "provenance": [
    "Primary-source review of selected TOS 2021 methodology sections and artifact b16bc9272d007f8e79fa1017e5e6a4a397ba5f60; the artifact is not asserted to be the exact journal experiment revision.",
    "Executed only the TBS_TEST_MODE_ON userspace parser and its supplied unit test. No module, device-mapper target, filesystem mount or storage fault injection was run.",
    "Upstream repository carries GPL version 3. No upstream code, binaries or paper figures are redistributed here; the harness verifies externally obtained source."
  ],
  "updated": "2026-12-06"
}
