device-mapper · shipping · also Device Mapper, Linux device-mapper

Device-mapper

Device-mapper is a Linux kernel framework that implements virtual block devices through target-specific mappings of their address ranges.

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. [1] [2] [3]

A 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. [4] [5]

A 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. [2] [1]

Mapping 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. [7] [8]

Relations

related
LVM, Volume manager, dm-crypt, dm-zero, dm-error, dm-striped, dm-linear, dm-log-writes, dm-era

Citations

  1. LVM2 lvm(8): userspace volume management and kernel Device Mapper (accessed 2026-11-29)
  2. Linux kernel: dm-linear range translation and backing offset (accessed 2026-11-29)
  3. Linux v6.12: dm-crypt encryption target (accessed 2026-11-29)
  4. LVM2 dmsetup(8): logical devices, table format and sector units (accessed 2026-11-29)
  5. Linux v6.10 stable ABI: logical_block_size and physical_block_size (accessed 2026-11-29)
  6. Linux v6.12 linear.rst: pinned reversal tutorial, lines 47-56 (accessed 2026-11-30)
  7. Hesela: twelve native arithmetic observations, independent integer oracle and replay instructions (accessed 2026-11-30)

Further reading

  1. Hesela: device-mapper address units and capacity layers (accessed 2026-11-29)
Sources & caveats
  • 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.

JSON: /data/terms/device-mapper.json

Published by Hesela team · Updated

Report a correction · Editorial standards · Reuse guidance

Cite this page
Hesela team. Device-mapper. Hesela. 2026-12-01. https://hesela.dev/terms/device-mapper/