From b63346bb14e9639acc776319af569d6550cfe069 Mon Sep 17 00:00:00 2001 From: mav Date: Fri, 23 Dec 2011 19:53:28 +0000 Subject: Addition to r228808: READ CD is a 12 byte command. So fill additional bytes and update CDB length when patching READ(10). MFC after: 1 month --- sys/cam/scsi/scsi_cd.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sys/cam/scsi/scsi_cd.c') diff --git a/sys/cam/scsi/scsi_cd.c b/sys/cam/scsi/scsi_cd.c index 71167e4..06823f2 100644 --- a/sys/cam/scsi/scsi_cd.c +++ b/sys/cam/scsi/scsi_cd.c @@ -1487,6 +1487,9 @@ cdstart(struct cam_periph *periph, union ccb *start_ccb) if (softc->params.blksize == 2352) { start_ccb->csio.cdb_io.cdb_bytes[0] = READ_CD; start_ccb->csio.cdb_io.cdb_bytes[9] = 0xf8; + start_ccb->csio.cdb_io.cdb_bytes[10] = 0; + start_ccb->csio.cdb_io.cdb_bytes[11] = 0; + start_ccb->csio.cdb_len = 12; } start_ccb->ccb_h.ccb_state = CD_CCB_BUFFER_IO; -- cgit v1.1