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
- LVM2 lvm(8): userspace volume management and kernel Device Mapper
- Linux kernel: dm-linear range translation and backing offset
- Linux v6.12: dm-crypt encryption target
- LVM2 dmsetup(8): logical devices, table format and sector units
- Linux v6.10 stable ABI: logical_block_size and physical_block_size
- Linux v6.12 linear.rst: pinned reversal tutorial, lines 47-56
- Hesela: twelve native arithmetic observations, independent integer oracle and replay instructions
Further reading
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.