VirtualBox

Changeset 32076 in vbox for trunk/src


Ignore:
Timestamp:
Aug 30, 2010 7:18:36 AM (14 years ago)
Author:
vboxsync
Message:

CD/Passthrough: READ CD requires the numbers of blocks to read and not the number of bytes

Location:
trunk/src/VBox/Devices/Storage
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Storage/DevAHCI.cpp

    r32073 r32076  
    35183518            default:
    35193519                AssertMsgFailed(("Don't know how to split command %#04x\n", pAhciPortTaskState->aATAPICmd[0]));
    3520                 //if (s->cErrors++ < MAX_LOG_REL_ERRORS)
    3521                 LogRel(("AHCI: LUN#%d: CD-ROM passthrough split error\n", pAhciPort->iLUN));
     3520                if (pAhciPort->cErrors++ < MAX_LOG_REL_ERRORS)
     3521                    LogRel(("AHCI: LUN#%d: CD-ROM passthrough split error\n", pAhciPort->iLUN));
    35223522                atapiCmdErrorSimple(pAhciPort, pAhciPortTaskState, SCSI_SENSE_ILLEGAL_REQUEST, SCSI_ASC_ILLEGAL_OPCODE);
    35233523                return false;
     
    35473547                case SCSI_READ_CD:
    35483548                    ataH2BE_U32(aATAPICmd + 2, iATAPILBA);
    3549                     ataH2BE_U24(aATAPICmd + 6, cbCurrTX);
     3549                    ataH2BE_U24(aATAPICmd + 6, cReqSectors);
    35503550                    break;
    35513551                case SCSI_READ_CD_MSF:
  • trunk/src/VBox/Devices/Storage/DevATA.cpp

    r32068 r32076  
    19771977                case SCSI_READ_CD:
    19781978                    ataH2BE_U32(aATAPICmd + 2, iATAPILBA);
    1979                     ataH2BE_U24(aATAPICmd + 6, cbCurrTX);
     1979                    ataH2BE_U24(aATAPICmd + 6, cReqSectors);
    19801980                    break;
    19811981                case SCSI_READ_CD_MSF:
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette