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

dm-era

dm-era is a Linux device-mapper target that records which origin-device blocks were written during user-defined eras.

Tracking: A 32-bit era counter labels periods of block writes. The checkpoint message may advance the era; read the status rather than assuming it incremented. [1]

Capture: take_metadata_snap holds change-tracking metadata for userspace inspection, not the origin's data bytes. A changed-block list does not preserve an earlier payload or establish application consistency. [1] [2]

Selection: era_invalidate lists blocks that may have changed since the beginning of a selected era. Its manual requires the metadata-snapshot mode when examining active target metadata. A listed block need not contain different bytes from its earlier version. [4]

History: Commit 2524933307fd fixes stale bitset-cache reuse across consecutive archived writesets for devices with at most 64 tracked blocks. The failure loses write-history information, not necessarily the underlying writes. The fix resets the cache for each writeset and is present in v6.12. [3] [2]

Relations

related
Changed block tracking, Device-mapper

Limitations

  • Writes that bypass the target are outside its observation path; backup payload, tracking lineage and recovery-point consistency need separate checks. [2]

Citations

  1. Linux v6.12: dm-era checkpoint and metadata-snapshot interfaces (accessed 2026-12-01)
  2. Linux v6.12: dm-era-target.c metadata snapshots and writeset digestion (accessed 2026-12-01)
  3. Linux commit 2524933307fd: invalidate bitset cache between archived writesets (accessed 2026-12-01)
  4. thin-provisioning-tools v1.1.0: era_invalidate manual (accessed 2026-12-01)
  5. Hesela: bounded writeset-cache illustration and tests (accessed 2026-12-01)

Further reading

  1. Hesela: snapshots, change tracking and backup recovery boundaries (accessed 2026-12-01)
Sources & caveats
  • Version scope: Linux v6.12 and thin-provisioning-tools v1.1.0; distribution backports were not surveyed.
  • The linked model illustrates the historical cache-lifetime defect using synthetic bitmaps. It does not execute kernel code, read device metadata or reproduce a restore. [5]

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

Published by Hesela team · Updated

Report a correction · Editorial standards · Reuse guidance

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