{
  "advantages": [
    {
      "text": "Bounded medium-only commands can divide a long range, provided completion is tracked separately for every part.",
      "citationIds": [
        "sg-verify"
      ]
    }
  ],
  "limitations": [
    {
      "text": "A medium-only verify sends no reference data, so it cannot detect a correctly stored but wrong payload.",
      "citationIds": [
        "sg-verify"
      ]
    }
  ],
  "supersedes": [],
  "supersededBy": [],
  "firstSeen": null,
  "lastSeen": null,
  "updated": "2026-11-29",
  "slug": "scsi-verify",
  "term": "SCSI VERIFY",
  "aliases": [
    "VERIFY(10)",
    "VERIFY(16)"
  ],
  "status": "shipping",
  "definition": "SCSI VERIFY checks selected logical blocks using verification semantics that depend on command fields and device behavior.",
  "note": "BYTCHK=0 supplies no host reference. Mode 1 compares per-block reference data; mode 3 repeats one logical block across the range. Protection information and unmapped-LBA rules also matter. [scsi-2020] WRITE AND VERIFY writes first; it is not a read-only scan. [scsi-manual] DPO lowers cache-retention priority, not a universal physical-read guarantee. [sg-verify]\n\nThe cited utility defaults to 128 blocks per command, or 64 KiB at 512 bytes per block. Its manual gives per-command limits of 65,535 for VERIFY(10) and 2,147,483,647 for VERIFY(16). Parser acceptance of BYTCHK=2 does not make it valid: SBC-3 revision 34 reserves that value. [sg-verify] Use --ebytchk for the mode; legacy --bytchk sets a byte count in the pinned client. [sg-client]\n\nClient capture: count=3, bpc=1 and ndo=1536 produced three one-block calls, each with the same full reference, despite an override diagnostic. A short three-byte input returned exit 0 before any device open; an unmocked nonexistent-path control reproduced this. These are version-scoped software observations, not successful device comparisons. Retain input completeness, submitted ranges, statuses and diagnostics separately. [hesela-capture]",
  "related": [
    "scsi",
    "sas",
    "read-after-write-verification",
    "data-scrubbing",
    "scsi-check-condition"
  ],
  "citations": [
    {
      "id": "scsi-manual",
      "title": "Seagate. SCSI Commands Reference Manual, 100293068 Rev. A, February 2006; sections 3.49 and 3.58, printed pp. 175-176 and 198.",
      "url": "https://www.seagate.com/staticfiles/support/disc/manuals/scsi/100293068a.pdf",
      "accessed": "2026-10-16"
    },
    {
      "id": "sg-verify",
      "title": "sg3_utils v1.48: sg_verify manual, BYTCHK, DPO and exit status (manual header retains 1.45).",
      "url": "https://raw.githubusercontent.com/hreinecke/sg3_utils/v1.48/doc/sg_verify.8",
      "accessed": "2026-10-23"
    },
    {
      "id": "sg-driver",
      "title": "Douglas Gilbert. Linux SG driver version 4.0: request-sharing verification and prefetch discussion.",
      "url": "https://sg.danny.cz/sg/sg_v40.html",
      "accessed": "2026-10-16"
    },
    {
      "id": "hesela-verification",
      "title": "HDD write verification: completion, persistence and comparison",
      "url": "https://hesela.com/analyses/hdd-write-verification-iraw/",
      "accessed": "2026-10-16"
    },
    {
      "id": "scsi-2020",
      "title": "Seagate. SCSI Commands Reference Manual, 100293068 Rev. L (2020), section 3.59, printed pages 248-249.",
      "url": "https://www.seagate.com/files/staticfiles/support/docs/manual/Interface%20manuals/100293068L.pdf",
      "accessed": "2026-11-29"
    },
    {
      "id": "sg-client",
      "title": "sg3_utils v1.48: pinned sg_verify.c, option parsing, reference acquisition and command loop.",
      "url": "https://github.com/hreinecke/sg3_utils/blob/c2710e0ac7002193d63e843723e987015ca3b13d/src/sg_verify.c",
      "accessed": "2026-11-29"
    },
    {
      "id": "hesela-capture",
      "title": "Hesela. SCSI VERIFY reference and coverage: native client capture, unmocked input controls and reproduction (2026-11-29).",
      "url": "https://hesela.dev/research/scsi-verify-reference/README.md",
      "accessed": "2026-11-29"
    }
  ],
  "provenance": [
    "sg-verify is the sg_verify manual page from sg3_utils 1.48, re-read 2026-10-23 for the per-command block limits, the 128-block default and the BYTCHK values.",
    "The idle-read-after-write entry links here because a host-issued VERIFY is a separate check from drive-initiated idle verification.",
    "Capture: installed sg3-utils 1.46-3ubuntu4.1 and unmodified v1.48 client built at -O0/-O2 against the installed 1.46 helper library. Device and VERIFY calls intercepted; short-input controls also run without interception. [hesela-capture]",
    "Twelve selected scenarios per client, plus six unmocked controls, repeated exactly. No hardware, transport, persistence or performance measurement. The full v1.48 distribution was not built. [hesela-capture]"
  ]
}
