Key Code Qualifier: Difference between revisions

Content deleted Content added
Typo fixing, typos fixed: world-wide → worldwide using AWB
No edit summary
Line 4:
 
When a SCSI [[SCSI target|target]] device returns a [[SCSI check condition|check condition]] in response to a [[SCSI command|command]], the [[SCSI initiator|initiator]] usually then issues a [[SCSI Request Sense Command|SCSI Request Sense command]]. This process is part of a SCSI protocol called [[SCSI contingent allegiance condition|Contingent Allegiance Condition]]. The target will respond to the Request Sense command with a set of SCSI sense data which includes three fields giving increasing levels of detail about the error:
*K - sense key - 4 bits, (byte 2 of Fixed sense data format)
*C - additional sense code (ASC) - 8 bits, (byte 12 of Fixed sense data format)
*Q - additional sense code qualifier (ASCQ) - 8 bits, (byte 13 of Fixed sense data format)
The initiator can take action based on just the K field which indicates if the error is minor or major. However all three fields are usually logically combined into a 20 bit field called Key Code Qualifier or KCQ. The specification for the target device will define the list of possible KCQ values. In practice there are many KCQ values which are common between different SCSI device types and different SCSI device vendors.