{
  "slug": "ltfs-index",
  "term": "LTFS index",
  "aliases": [
    "LTFS XML index"
  ],
  "definition": "An LTFS index is XML metadata describing files, directories and the mapping from file contents to recorded tape extents.",
  "note": "A full index describes the volume; an incremental index records changes. Incremental indexes belong only in the data partition, whose final index must be full after clean unmount. [c1] Rollback tools can expose earlier index generations as rollback points. Keeping history preserves access to other generations; erase-history discards newer history, so rollback is not always reversible. [c2]\n\nReading incremental indexes is required for format 2.5.0+ conformance; generating them is optional. Included extentinfo and extendedattributes elements must be complete, not partial list edits. Recovery starts with a full index and applies the intervening increments. [c1]\n\nIn reference commit efc9e3a5, newly synthesized _ltfs_lostandfound entries represent individual logical tape-record reads, with generated names and recovery-time timestamps. The helper does not reconstruct original filenames or multi-record file grouping; this does not describe ordinary named files recovered through a surviving index. [c3]\n\nLTFS 2.5.1 Annex F.3 does not require file-hash generation or checking and leaves hash maintenance and update policy outside its scope. [c1] A stored hash attribute is not a verification event: recompute the digest for the intended content version. Hesela verification guidance: compare recovered paths, lengths, versions and whole-file digests with a trusted, preexisting inventory; a digest calculated only after salvage cannot by itself establish original identity.",
  "status": "shipping",
  "advantages": [],
  "limitations": [
    {
      "text": "An index records file locations, not an independent backup of the file payload.",
      "citationIds": [
        "c1"
      ]
    },
    {
      "text": "Older recovery tools that do not recognize incremental indexes can fail or lose newer changes on an inconsistent volume, even when clean-volume mounting works.",
      "citationIds": [
        "c1"
      ]
    }
  ],
  "related": [
    "ltfs",
    "lto",
    "tape",
    "ltfs-data-placement-policy",
    "medium-auxiliary-memory"
  ],
  "supersedes": [],
  "supersededBy": [],
  "firstSeen": null,
  "lastSeen": null,
  "updated": "2026-10-24",
  "citations": [
    {
      "id": "c1",
      "title": "SNIA LTFS Format Specification 2.5.1, sections 5, 9.2 and Annex H (including H.1, H.4 and H.5); Annex F.3",
      "url": "https://www.snia.org/sites/default/files/technical-work/ltfs/release/SNIA-LTFS-Format-2-5-1-Standard.pdf",
      "accessed": "2026-10-24"
    },
    {
      "id": "c2",
      "title": "IBM Storage Archive SDE: Rolling back media",
      "url": "https://www.ibm.com/docs/en/storage-archive-sde/2.4.8?topic=tools-rolling-back-media",
      "accessed": "2026-10-15"
    },
    {
      "id": "c3",
      "title": "LTFS reference implementation, ltfs_internal.c: lost-and-found helper and callers, commit efc9e3a5c498504c03c2f1d0b931bae058922104",
      "url": "https://raw.githubusercontent.com/LinearTapeFileSystem/ltfs/efc9e3a5c498504c03c2f1d0b931bae058922104/src/libltfs/ltfs_internal.c",
      "accessed": "2026-10-24"
    }
  ],
  "provenance": [
    "Rollback and erase-history behavior refers to IBM Storage Archive SDE, not a requirement on every LTFS implementation. [c2]",
    "Recovery-entry behavior is a source review of one pinned implementation, not a format requirement, tape recovery experiment or guarantee for every LTFS product. [c3]"
  ]
}
