{
  "slug": "scsi-defect-list",
  "term": "SCSI defect list",
  "aliases": [
    "SCSI medium defect list",
    "READ DEFECT DATA"
  ],
  "definition": "A SCSI defect list describes medium defects through address descriptors returned by READ DEFECT DATA.",
  "note": "READ DEFECT DATA selects the primary list (PLIST), grown list (GLIST), or both. PLISTV and GLISTV identify the returned lists. DEFECT LIST LENGTH counts descriptor bytes, excluding the header; descriptor width depends on the returned format. Short and long block descriptors contain vendor-specific values, not a standardized map of defective host LBAs. [seagate-defects]\n\nThe 12-byte command supports an address-descriptor index. Its reported length covers the remaining descriptors from that index, not necessarily the whole list. A short allocation can retrieve only a prefix. [seagate-defects]\n\nIn the inspected smartmontools revision, scsiPrintGrownDefectListLen requests GLIST at index zero with only enough buffer for the header. It checks the returned list flags and divides the reported byte length by four or eight according to format. This is not a surface scan or descriptor-by-descriptor verification. Missing or unsupported data must not become a fabricated zero. [smartmontools-defects]\n\nCollector versions can change units: upstream 7.1 assigns positive scsi_grown_defect_list JSON values in descriptor bytes; 7.2 reports elements, as the text output already did. The upstream fix is dated 18 June 2020. [smartmontools-71-defects] [smartmontools-72-defects] [smartmontools-defect-unit-fix]\n\nIllustrative arithmetic, not a drive measurement: an accepted format-4 header with 240 descriptor bytes gives 240 before the fix and 30 after (240 / 8). A lower counter need not mean fewer defects. [smartmontools-71-defects] [smartmontools-72-defects]",
  "status": "shipping",
  "advantages": [],
  "limitations": [
    "A descriptor count is not a failure probability or a validated replacement threshold. Preserve command, list selection, format and collection errors when comparing observations.",
    {
      "text": "RAIDShield studied SATA disks, with a 60-day prediction window in its threshold evaluation. It does not validate a universal SCSI defect-list threshold; the later SCSI fix is not evidence of an error in that SATA study.",
      "citationIds": [
        "raidshield-paper"
      ]
    },
    {
      "text": "READ DEFECT DATA (12) length 0xffffffff means more than 0xfffffffe descriptor bytes, not an exact byte count. This lower bound applies to the suffix starting at the requested index. Preserve the bound before unit conversion; it is distinct from a short transfer caused by allocation length.",
      "citationIds": [
        "seagate-defects"
      ]
    },
    {
      "text": "With eight-byte descriptors and index zero, 0xfffffff8 means exactly 536870911 elements, while 0xffffffff implies at least 536870912. The pinned 7.2 function divides both lengths to 536870911. A stored scalar alone cannot distinguish these cases; do not relabel archived values without the original response and collector context.",
      "citationIds": [
        "seagate-defects",
        "smartmontools-72-defects"
      ]
    }
  ],
  "related": [
    "scsi",
    "sas",
    "smart",
    "latent-sector-error",
    "scsi-read-capacity"
  ],
  "supersedes": [],
  "supersededBy": [],
  "firstSeen": null,
  "lastSeen": null,
  "updated": "2026-11-08",
  "citations": [
    {
      "id": "seagate-defects",
      "title": "Seagate SCSI Commands Reference Manual, 100293068 Rev. M (June 2022), sections 3.26-3.27, pp. 170-173",
      "url": "https://www.seagate.com/content/dam/seagate/migrated-assets/staticfiles/support/docs/manual/Interface%20manuals/100293068m.pdf",
      "accessed": "2026-11-08"
    },
    {
      "id": "smartmontools-defects",
      "title": "smartmontools scsiprint.cpp revision 5658 (2025-02-02), scsiPrintGrownDefectListLen, lines 654-756",
      "url": "https://www.smartmontools.org/static/doxygen/scsiprint_8cpp_source.html",
      "accessed": "2026-11-07"
    },
    {
      "id": "hesela-raidshield",
      "title": "Hesela: RAIDShield deployment and counter-portability limits",
      "url": "https://hesela.com/analyses/raidshield-reallocated-sectors/#counter-portability",
      "accessed": "2026-11-07"
    },
    {
      "id": "smartmontools-71-defects",
      "title": "smartmontools 7.1 source, pinned commit 249b38c: scsiPrintGrownDefectListLen",
      "url": "https://github.com/smartmontools/smartmontools/blob/249b38c426330f5d267c8a9895d1ede591ee8519/smartmontools/scsiprint.cpp",
      "accessed": "2026-11-08"
    },
    {
      "id": "smartmontools-72-defects",
      "title": "smartmontools 7.2 source, pinned commit 59efad4: scsiPrintGrownDefectListLen",
      "url": "https://github.com/smartmontools/smartmontools/blob/59efad4c0000cf40e3441acdc8b0ee58adac7a11/smartmontools/scsiprint.cpp",
      "accessed": "2026-11-08"
    },
    {
      "id": "smartmontools-defect-unit-fix",
      "title": "Christian Franke: upstream correction of scsi_grown_defect_list JSON units, 18 June 2020",
      "url": "https://github.com/smartmontools/smartmontools/commit/ab07de4d2f4f9188584c427e3d353cb221df7ae9",
      "accessed": "2026-11-08"
    },
    {
      "id": "raidshield-paper",
      "title": "Ma et al., RAIDShield, USENIX FAST 2015, sections 3.1 and 4.2-4.3",
      "url": "https://www.usenix.org/system/files/conference/fast15/fast15-paper-ma.pdf",
      "accessed": "2026-11-08"
    }
  ],
  "provenance": [
    "Source synthesis, not a drive experiment. Manual revision and inspected implementation are explicit; no claim that all devices implement every descriptor format.",
    "Engineering inference: retain collector build and patch provenance. Do not blindly divide archived values by eight: corrected values count elements, and the divisor depends on returned format. [smartmontools-71-defects] [smartmontools-72-defects]",
    "The bound is integer arithmetic under the named 2022 protocol contract and fixed descriptor width. It does not establish that a physical drive has such a list or how often this occurs. [seagate-defects]",
    "The 7.2 statement concerns pinned historical code, not a current-release test. Source synthesis and the existing synthetic-header replay do not establish firmware behavior or RAIDShield prediction accuracy. [smartmontools-72-defects]"
  ]
}
