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
- Linux v6.12: dm-era checkpoint and metadata-snapshot interfaces
- Linux v6.12: dm-era-target.c metadata snapshots and writeset digestion
- Linux commit 2524933307fd: invalidate bitset cache between archived writesets
- thin-provisioning-tools v1.1.0: era_invalidate manual
- Hesela: bounded writeset-cache illustration and tests
Further reading
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]