VirtualBox

Changeset 64441 in vbox for trunk


Ignore:
Timestamp:
Oct 27, 2016 2:54:04 PM (8 years ago)
Author:
vboxsync
Message:

DrvSCSI: Don't report that all data was transfered if the status indicates an error + todo to implement that residual counters properly

File:
1 edited

Legend:

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

    r64407 r64441  
    783783static DECLCALLBACK(int) drvscsiIoReqQueryResidual(PPDMIMEDIAEX pInterface, PDMMEDIAEXIOREQ hIoReq, size_t *pcbResidual)
    784784{
    785     RT_NOREF2(pInterface, hIoReq);
    786 
    787     *pcbResidual = 0; /** @todo: Implement. */
     785    RT_NOREF1(pInterface);
     786    PDRVSCSIREQ pReq = (PDRVSCSIREQ)hIoReq;
     787
     788    *pcbResidual = *pReq->pu8ScsiSts == SCSI_STATUS_OK ? 0 : pReq->cbBuf; /** @todo: Implement properly. */
    788789    return VINF_SUCCESS;
    789790}
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