dm-linear · shipping · also Device-mapper linear target

dm-linear

dm-linear is a Linux device-mapper target that maps a contiguous logical-sector range onto an equal-length range of one backing block device.

Scope: Several linear entries can concatenate backing ranges. Unlike dm-striped, ordinary concatenation does not cycle fixed-size chunks across destinations, but concurrent I/O to different devices remains possible. [1] [2]

Addressing: For logical start S, length N and backing offset O, sector L in [S, S + N) maps to O + (L - S). These are 512-byte address units, not necessarily the device's logical or physical block size. Core checks also constrain backing capacity and alignment; arithmetic alone does not establish table acceptance. [3] [4] [5] [6]

Example: With S = 1024, N = 16 and O = 128, logical sectors 1024 through 1039 map to backing sectors 128 through 143. Sector 1040 is outside the entry. Executable arithmetic tests cover boundaries and nonzero starts without loading a mapping. [7]

Aliasing: Two entries on the same backing device, starting at 0 and 16 with length 16 and offset 128, both map their first sector to backing sector 128. They name the same storage, not two independent copies. A write through one alias can replace bytes addressed through another; immediate coherence of buffered reads is not promised. This follows from address translation. [3] [7]

Limits: The target adds neither mirrors nor parity, although lower layers may supply redundancy. Changing the mapping does not itself relocate existing bytes. Logical size does not prove unique backing capacity or independent failure domains. [3]

Relations

related
Device-mapper, dm-striped, LVM, Volume manager

Citations

  1. Linux v6.12: linear mappings and joining devices (accessed 2026-12-01)
  2. Linux v6.12: striped target and chunk placement (accessed 2026-12-01)
  3. Linux v6.12: linear_map_sector and linear_map (accessed 2026-12-01)
  4. Linux v6.12: dm_target_offset subtracts the target begin (accessed 2026-12-01)
  5. Linux v6.12: sector_t and 512-byte sector units (accessed 2026-12-01)
  6. Linux v6.12: logical adjacency, backing extent and alignment checks (accessed 2026-12-01)
  7. Hesela: arithmetic-only linear address translation and boundary tests (accessed 2026-12-01)
Sources & caveats
  • Primary-source synthesis pinned to Linux v6.12; no block devices, filesystems or storage configurations were created or modified.
  • Aliasing examples are deductions from address translation, not hardware measurements or claims about filesystem cache coherence.
  • The executable model tests sector arithmetic only; it is not a kernel table validator or a deployment recipe.

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

Published by Hesela team · Updated

Report a correction · Editorial standards · Reuse guidance

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