Not really sure why the inquiry command was special cased on ATAPI, but it
prevents tools that try to read other inquiry pages (like cdrecord) from getting the required infos. This way the inquiry command is sent to the ATAPI device, which seems to work fine (at least for the drive I have here). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31019 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
d0cb410d51
commit
e10fbc44fb
@ -825,7 +825,7 @@ AHCIPort::ScsiExecuteRequest(scsi_ccb *request)
|
|||||||
{
|
{
|
||||||
// TRACE("AHCIPort::ScsiExecuteRequest port %d, opcode 0x%02x, length %u\n", fIndex, request->cdb[0], request->cdb_length);
|
// TRACE("AHCIPort::ScsiExecuteRequest port %d, opcode 0x%02x, length %u\n", fIndex, request->cdb[0], request->cdb_length);
|
||||||
|
|
||||||
if (fIsATAPI && request->cdb[0] != SCSI_OP_INQUIRY) {
|
if (fIsATAPI) {
|
||||||
bool isWrite = false;
|
bool isWrite = false;
|
||||||
switch (request->flags & SCSI_DIR_MASK) {
|
switch (request->flags & SCSI_DIR_MASK) {
|
||||||
case SCSI_DIR_NONE:
|
case SCSI_DIR_NONE:
|
||||||
|
Loading…
Reference in New Issue
Block a user