dm-error · shipping · also device-mapper error target, error target

dm-error

dm-error is a Linux device-mapper target that fails mapped data I/O instead of supplying data or retaining writes.

In Linux v6.12, the bio and request mapping callbacks return DM_MAPIO_KILL. Discard handling is explicitly advertised so a mapped discard fails as I/O rather than merely being unsupported. Optional backing-device arguments supply device limits, not successful read/write forwarding. [1]

The bio-based core translates DM_MAPIO_KILL into BLK_STS_IOERR. This is an internal block-layer result, not a direct return value from read() or write(). Cached reads and deferred writeback above the target can change what an application observes. [2]

Empty flushes follow a separate path: the core skips targets with num_flush_bios equal to zero, and the reviewed error target does not request flush bios. Its failing mapping callbacks therefore do not establish that every application synchronization call must fail. [2] [1]

Testing scope: IRON File Systems selects faults by block type and workload, and compares faulty runs with fault-free controls. A uniformly failing mapping does not provide that coverage; record which requests actually reached the target. [3]

Relations

related
Device-mapper, dm-zero, dm-flakey

Advantages

  • Provides an explicit failing mapping for unavailable logical-volume regions.

Limitations

  • Is not a probabilistic media-failure model or a complete test of an application's recovery behavior.

Citations

  1. Linux v6.12: error target mapping callbacks and optional device limits (accessed 2026-12-01)
  2. Linux v6.12: bio error completion and empty-flush target selection (accessed 2026-12-01)
  3. Prabhakaran et al., IRON File Systems, SOSP 2005, section 4: failure-policy fingerprinting (accessed 2026-12-01)
Sources & caveats
  • Source review of Linux v6.12, pinned to commit adc218676eef25575469234709c2d87185ca223a; no device creation or native failure experiment.

JSON: /data/terms/dm-error.json

Published by Hesela team · Updated

Report a correction · Editorial standards · Reuse guidance

Cite this page
Hesela team. dm-error. Hesela. 2026-12-01. https://hesela.dev/terms/dm-error/