VirtualBox

Changeset 39518 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Dec 2, 2011 9:10:13 PM (13 years ago)
Author:
vboxsync
Message:

DrvDiskIntegrity: Fix building

File:
1 edited

Legend:

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

    r38878 r39518  
    489489 * @param   cRanges  Number of ranges in the array.
    490490 */
    491 static int drvdiskintDiscardRecords(PDRVDISKINTEGRITY pThis, PPDMRANGE paRanges, unsigned cRanges)
     491static int drvdiskintDiscardRecords(PDRVDISKINTEGRITY pThis, PCRTRANGE paRanges, unsigned cRanges)
    492492{
    493493    int rc = VINF_SUCCESS;
     
    809809                                             size_t cbRead, void *pvUser)
    810810{
    811      LogFlow(("%s: uOffset=%#llx paSeg=%#p cSeg=%u cbRead=%d pvUser=%#p\n", __FUNCTION__,
     811     LogFlow(("%s: uOffset=%llu paSeg=%#p cSeg=%u cbRead=%d pvUser=%#p\n", __FUNCTION__,
    812812             uOffset, paSeg, cSeg, cbRead, pvUser));
    813813    PDRVDISKINTEGRITY pThis = PDMIMEDIAASYNC_2_DRVDISKINTEGRITY(pInterface);
     
    948948
    949949/** @copydoc PDMIMEDIAASYNC::pfnStartDiscard */
    950 static DECLCALLBACK(int) drvdiskintStartDiscard(PPDMIMEDIA pInterface, PPDMRANGE paRanges, unsigned cRanges, void *pvUser)
     950static DECLCALLBACK(int) drvdiskintStartDiscard(PPDMIMEDIAASYNC pInterface, PCRTRANGE paRanges, unsigned cRanges, void *pvUser)
    951951{
    952952    int rc = VINF_SUCCESS;
     
    961961    if (pThis->hIoLogger)
    962962    {
    963         rc = VDDbgIoLogStartDiscard(pThis->hIoLogger, true, (PVDRANGE)paRanges, cRanges, &hIoLogEntry);
     963        rc = VDDbgIoLogStartDiscard(pThis->hIoLogger, true, paRanges, cRanges, &hIoLogEntry);
    964964        AssertRC(rc);
    965965    }
    966966
    967     rc = pThis->pDrvMedia->pfnStartDiscard(pThis->pDrvMedia, paRanges, cRanges, pIoReq);
     967    rc = pThis->pDrvMediaAsync->pfnStartDiscard(pThis->pDrvMediaAsync, paRanges, cRanges, pIoReq);
    968968
    969969    if (rc == VINF_VD_ASYNC_IO_FINISHED)
     
    10621062
    10631063/** @copydoc PDMIMEDIA::pfnDiscard */
    1064 static DECLCALLBACK(int) drvdiskintDiscard(PPDMIMEDIA pInterface, PPDMRANGE paRanges, unsigned cRanges)
     1064static DECLCALLBACK(int) drvdiskintDiscard(PPDMIMEDIA pInterface, PCRTRANGE paRanges, unsigned cRanges)
    10651065{
    10661066    int rc = VINF_SUCCESS;
     
    10701070    if (pThis->hIoLogger)
    10711071    {
    1072         rc = VDDbgIoLogStartDiscard(pThis->hIoLogger, false, (PVDRANGE)paRanges, cRanges, &hIoLogEntry);
     1072        rc = VDDbgIoLogStartDiscard(pThis->hIoLogger, false, paRanges, cRanges, &hIoLogEntry);
    10731073        AssertRC(rc);
    10741074    }
     
    11121112            rc = drvdiskintWriteRecord(pThis, pIoReq->paSeg, pIoReq->cSeg, pIoReq->off, pIoReq->cbTransfer);
    11131113        else if (pIoReq->enmTxDir == DRVDISKAIOTXDIR_DISCARD)
    1114             rc = drvdiskintDiscardRecords(pThis, paRanges, cRanges);
     1114            rc = drvdiskintDiscardRecords(pThis, pIoReq->paRanges, pIoReq->cRanges);
    11151115        else
    11161116            AssertMsg(pIoReq->enmTxDir == DRVDISKAIOTXDIR_FLUSH, ("Huh?\n"));
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