[SCSI] sd,sr: add early detection of medium not present
The current scsi_test_unit_ready() is updated to return sense code
information (in struct scsi_sense_hdr). The sd and sr drivers are
changed to interpret the sense code return asc 0x3a as no media and
adjust the device status accordingly.
Signed-off-by:
James Bottomley <James.Bottomley@HansenPartnership.com>
Showing
- drivers/scsi/scsi_ioctl.c 1 addition, 1 deletiondrivers/scsi/scsi_ioctl.c
- drivers/scsi/scsi_lib.c 38 additions, 8 deletionsdrivers/scsi/scsi_lib.c
- drivers/scsi/sd.c 10 additions, 3 deletionsdrivers/scsi/sd.c
- drivers/scsi/sr.c 13 additions, 6 deletionsdrivers/scsi/sr.c
- include/scsi/scsi_device.h 1 addition, 1 deletioninclude/scsi/scsi_device.h
Loading
Please register or sign in to comment