dm-unstriped
dm-unstriped is a Linux device-mapper target that exposes one member's address sequence through an existing striped block-device address space.
Purpose: Unstriping selects addresses; it does not reconstruct missing bytes, add parity or bypass failure of the backing striped device. [1] [2]
Geometry: For N members, chunk size C, zero-based member i, backing offset O and a target starting at zero, sector x maps to O + N*C*floor(x/C) + i*C + (x mod C). Units are 512 bytes. Require 0 <= i < N and a positive length divisible by C; check the expanded backing span separately. [2] [3] [4]
Example: N=4, C=256, i=2 and O=0 map x=0, 255, 256 and 511 to 512, 767, 1536 and 1791. A 512-sector view reaches beyond backing sector 511. This is integer arithmetic, not a loaded target. [4]
Version boundary: Linux v6.12 uses the incoming bio sector without subtracting the target start. Commit 83c10e8dd436 corrects this using dm_target_offset. At target start 1024, N=2, C=128, i=1 and O=0, the first sector maps to 128 with relative addressing, versus 2176 with the old calculation. This example is address arithmetic, not a kernel test. [2] [6]
Validation: Non-power-of-two chunks use division. The v6.12 member-index check is weaker than 0 <= i < N. Its guide's loop example requests length 1 with chunk 256, contradicting the constructor's divisibility check. The later origin fix does not change these constructor checks. No kernel mapping was loaded here. [1] [2] [6]
Relations
- related
- dm-striped, Device-mapper, RAID 0, Stripe unit
Limitations
- A component-address view does not establish physical isolation, improved latency or missing-member recovery. [1, 2]
Citations
- Linux v6.12: unstriped target documentation and loop-device example
- Linux v6.12: dm-unstripe.c constructor, mapping and device iteration
- Linux v6.12: block-layer sector address units
- Hesela: exact inverse-striping arithmetic and independent enumeration tests
- Linux commit 83c10e8dd436: target-relative unstriped address mapping
Further reading
Sources & caveats
- Static source comparison: Linux v6.12 commit adc218676eef25575469234709c2d87185ca223a and origin fix 83c10e8dd43628d0bf86486616556cd749a3c310; downstream backport coverage was not surveyed.
- Constructed integer mapping checked against independent stripe enumeration. No device-mapper table, block device or filesystem was created or modified.
- The arithmetic model rejects invalid member indices even where the reviewed parser does not; it is not a kernel-table validator.
- The historical hardware-specific performance example is not generalized to NVMe devices or reported as a Hesela measurement.