Attach to a CD device even when the SCSI status is 'busy'.

Reported by:	Thomas Quinot <thomas@cuivre.fr.eu.org>
MFC after:	3 weeks
This commit is contained in:
Kenneth D. Merry 2001-09-03 05:04:47 +00:00
parent d73178aea8
commit e41ea14875
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=82850

View File

@ -1715,6 +1715,16 @@ cddone(struct cam_periph *periph, union ccb *done_ccb)
"size failed: %s, %s",
sense_key_desc,
asc_desc);
} else if ((have_sense == 0)
&& ((status & CAM_STATUS_MASK) ==
CAM_SCSI_STATUS_ERROR)
&& (csio->scsi_status ==
SCSI_STATUS_BUSY)) {
snprintf(announce_buf,
sizeof(announce_buf),
"Attempt to query device "
"size failed: SCSI Status: %s",
scsi_status_string(csio));
} else if (SID_TYPE(&cgd.inq_data) == T_CDROM) {
/*
* We only print out an error for