[SCSI] sd,sr: add early detection of medium not present
authorJames Bottomley <James.Bottomley@SteelEye.com>
Sun, 2 Dec 2007 17:10:40 +0000 (19:10 +0200)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Sat, 12 Jan 2008 00:22:50 +0000 (18:22 -0600)
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>

No differences found