From: James Bottomley Date: Sun, 2 Dec 2007 17:10:40 +0000 (+0200) Subject: [SCSI] sd,sr: add early detection of medium not present X-Git-Tag: v2.6.25-rc1~1230^2~130 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=001aac257cf8adbe90cdcba6e07f8d12dfc8fa6b;p=pandora-kernel.git [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 --- Reading git-diff-tree failed