{
  "slug": "device-mapper",
  "term": "Device-mapper",
  "aliases": [
    "Device Mapper",
    "Linux device-mapper"
  ],
  "definition": "Device-mapper is a Linux kernel framework that implements virtual block devices through target-specific mappings of their address ranges.",
  "note": "LVM is a userspace volume-management system that uses device-mapper; it is not the kernel framework itself. The selected target determines what a mapping does. The linear target translates an address range onto a range in another block device, while dm-crypt adds encryption. [lvm] [linear] [crypt]\n\nA dmsetup table describes each segment with a start, length, target type and target parameters. Table start and length use 512-byte sectors; the linear target's backing offset uses the same unit. These are address units, not a declaration that the device has 512-byte physical sectors. Linux exposes logical and physical block sizes separately. [dmsetup] [block-abi]\n\nA linear mapping alone adds neither redundant copies nor thin-provisioning behavior. Capacity and failure guarantees depend on the selected targets and backing stack, not the presence of a /dev/mapper name. [linear] [lvm]\n\nMapping generators need their own checks. The pinned Linux v6.12 reversal tutorial subtracts a chunk when a partial tail remains after truncation. In an arithmetic-only replay, 8192 input sectors produce one loop iteration but 8193 produce zero. This is a documentation-example observation, not a kernel-driver defect or a live device test. [linear-v612] [reversal-evidence]",
  "status": "shipping",
  "advantages": [],
  "limitations": [],
  "related": [
    "lvm",
    "volume-manager",
    "dm-crypt",
    "dm-zero",
    "dm-error",
    "dm-striped",
    "dm-linear",
    "dm-log-writes",
    "dm-era"
  ],
  "supersedes": [],
  "supersededBy": [],
  "firstSeen": null,
  "lastSeen": null,
  "citations": [
    {
      "id": "lvm",
      "title": "LVM2 lvm(8): userspace volume management and kernel Device Mapper",
      "url": "https://man7.org/linux/man-pages/man8/lvm.8.html",
      "accessed": "2026-11-29"
    },
    {
      "id": "linear",
      "title": "Linux kernel: dm-linear range translation and backing offset",
      "url": "https://docs.kernel.org/admin-guide/device-mapper/linear.html",
      "accessed": "2026-11-29"
    },
    {
      "id": "crypt",
      "title": "Linux v6.12: dm-crypt encryption target",
      "url": "https://docs.kernel.org/6.12/admin-guide/device-mapper/dm-crypt.html",
      "accessed": "2026-11-29"
    },
    {
      "id": "dmsetup",
      "title": "LVM2 dmsetup(8): logical devices, table format and sector units",
      "url": "https://man7.org/linux/man-pages/man8/dmsetup.8.html",
      "accessed": "2026-11-29"
    },
    {
      "id": "block-abi",
      "title": "Linux v6.10 stable ABI: logical_block_size and physical_block_size",
      "url": "https://www.kernel.org/doc/html/v6.10/admin-guide/abi-stable.html",
      "accessed": "2026-11-29"
    },
    {
      "id": "hesela-capacity",
      "title": "Hesela: device-mapper address units and capacity layers",
      "url": "https://hesela.com/analyses/sparse-files-preallocation-thin-capacity/#device-mapper",
      "accessed": "2026-11-29"
    },
    {
      "id": "linear-v612",
      "title": "Linux v6.12 linear.rst: pinned reversal tutorial, lines 47-56",
      "url": "https://github.com/torvalds/linux/blob/adc218676eef25575469234709c2d87185ca223a/Documentation/admin-guide/device-mapper/linear.rst",
      "accessed": "2026-11-30"
    },
    {
      "id": "reversal-evidence",
      "title": "Hesela: twelve native arithmetic observations, independent integer oracle and replay instructions",
      "url": "https://hesela.dev/research/dm-linear-reversal/README.md",
      "accessed": "2026-11-30"
    }
  ],
  "updated": "2026-12-01",
  "provenance": [
    "Source synthesis from Linux kernel documentation and LVM2 manuals; no block devices were created or modified.",
    "The framework is distinct from individual targets and from the userspace tools that configure them.",
    "The v6.12 tutorial arithmetic was reproduced with Perl 5.38.2; source SHA-256 and the original twelve observations are retained. No blockdev or dmsetup command was executed."
  ]
}
