SCSI sense data
SCSI sense data is structured information describing a reported condition, separate from the command's status value.
Fields: The response code selects fixed or descriptor format and current or deferred context. The sense key gives a category; ASC and ASCQ refine it. Preserve received bytes and length: a normalizer's zero-filled field need not have been present in the response. [1]
Delivery: Sense data can accompany CHECK CONDITION through autosense. It can also be returned as REQUEST SENSE payload with GOOD status, as in Linux v6.12's target emulation; GOOD then describes the request, not the absence of a reported condition. [2]
Boundary: Sense data is not a complete device event log. Its interpretation depends on the command, transport, device type and implementation. [3]
Relations
- related
- SCSI, SCSI CHECK CONDITION, SCSI sense key, SCSI Unit Attention, Additional sense code, Additional sense code qualifier, iSCSI autosense
Citations
- Linux v6.12: scsi_normalize_sense, response formats and field extraction
- Linux v6.12 target: spc_emulate_request_sense
- Hesela: SCSI state changes, sense data and Linux error interpretation
Sources & caveats
- Source review, not a hardware experiment. Linux behavior is pinned to v6.12.