mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
target: Introduce TCM_NO_SENSE
Introduce TCM_NO_SENSE, mapping to sense code 'Not ready, no additional sense information'. Signed-off-by: Hannes Reinecke <[email protected]> Cc: Nicholas Bellinger <[email protected]> Signed-off-by: Nicholas Bellinger <[email protected]>
This commit is contained in:
parent
18a9df42d5
commit
ba829137bf
2 changed files with 11 additions and 0 deletions
|
|
@ -2597,6 +2597,16 @@ transport_send_check_condition_and_sense(struct se_cmd *cmd,
|
|||
* SENSE KEY values from include/scsi/scsi.h
|
||||
*/
|
||||
switch (reason) {
|
||||
case TCM_NO_SENSE:
|
||||
/* CURRENT ERROR */
|
||||
buffer[0] = 0x70;
|
||||
buffer[SPC_ADD_SENSE_LEN_OFFSET] = 10;
|
||||
/* Not Ready */
|
||||
buffer[SPC_SENSE_KEY_OFFSET] = NOT_READY;
|
||||
/* NO ADDITIONAL SENSE INFORMATION */
|
||||
buffer[SPC_ASC_KEY_OFFSET] = 0;
|
||||
buffer[SPC_ASCQ_KEY_OFFSET] = 0;
|
||||
break;
|
||||
case TCM_NON_EXISTENT_LUN:
|
||||
/* CURRENT ERROR */
|
||||
buffer[0] = 0x70;
|
||||
|
|
|
|||
Loading…
Reference in a new issue