{
  "slug": "dm-era",
  "term": "dm-era",
  "aliases": [
    "Device-mapper era target"
  ],
  "definition": "dm-era is a Linux device-mapper target that records which origin-device blocks were written during user-defined eras.",
  "note": "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. [era-guide]\n\nCapture: 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. [era-guide] [era-code]\n\nSelection: 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. [era-invalidate]\n\nHistory: 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. [era-cache-fix] [era-code]",
  "status": "shipping",
  "advantages": [],
  "limitations": [
    {
      "text": "Writes that bypass the target are outside its observation path; backup payload, tracking lineage and recovery-point consistency need separate checks.",
      "citationIds": [
        "era-code"
      ]
    }
  ],
  "related": [
    "changed-block-tracking",
    "device-mapper"
  ],
  "supersedes": [],
  "supersededBy": [],
  "firstSeen": null,
  "lastSeen": null,
  "updated": "2026-12-01",
  "citations": [
    {
      "id": "era-guide",
      "title": "Linux v6.12: dm-era checkpoint and metadata-snapshot interfaces",
      "url": "https://www.kernel.org/doc/html/v6.12/admin-guide/device-mapper/era.html",
      "accessed": "2026-12-01"
    },
    {
      "id": "era-code",
      "title": "Linux v6.12: dm-era-target.c metadata snapshots and writeset digestion",
      "url": "https://github.com/torvalds/linux/blob/adc218676eef25575469234709c2d87185ca223a/drivers/md/dm-era-target.c",
      "accessed": "2026-12-01"
    },
    {
      "id": "era-cache-fix",
      "title": "Linux commit 2524933307fd: invalidate bitset cache between archived writesets",
      "url": "https://github.com/torvalds/linux/commit/2524933307fd0036d5c32357c693c021ab09a0b0",
      "accessed": "2026-12-01"
    },
    {
      "id": "era-invalidate",
      "title": "thin-provisioning-tools v1.1.0: era_invalidate manual",
      "url": "https://github.com/jthornber/thin-provisioning-tools/blob/b745ab35057bdd0a4f1406938916621dcf2b7ef6/man8/era_invalidate.txt",
      "accessed": "2026-12-01"
    },
    {
      "id": "era-model",
      "title": "Hesela: bounded writeset-cache illustration and tests",
      "url": "https://hesela.dev/research/dm-era/README.md",
      "accessed": "2026-12-01"
    },
    {
      "id": "era-recovery",
      "title": "Hesela: snapshots, change tracking and backup recovery boundaries",
      "url": "https://hesela.com/analyses/snapshot-backup-recovery-boundaries/#dm-era-tracking",
      "accessed": "2026-12-01"
    }
  ],
  "provenance": [
    "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. [era-model]"
  ]
}
