Changeset 39518 in vbox for trunk/src/VBox
- Timestamp:
- Dec 2, 2011 9:10:13 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/DrvDiskIntegrity.cpp
r38878 r39518 489 489 * @param cRanges Number of ranges in the array. 490 490 */ 491 static int drvdiskintDiscardRecords(PDRVDISKINTEGRITY pThis, P PDMRANGE paRanges, unsigned cRanges)491 static int drvdiskintDiscardRecords(PDRVDISKINTEGRITY pThis, PCRTRANGE paRanges, unsigned cRanges) 492 492 { 493 493 int rc = VINF_SUCCESS; … … 809 809 size_t cbRead, void *pvUser) 810 810 { 811 LogFlow(("%s: uOffset=% #llxpaSeg=%#p cSeg=%u cbRead=%d pvUser=%#p\n", __FUNCTION__,811 LogFlow(("%s: uOffset=%llu paSeg=%#p cSeg=%u cbRead=%d pvUser=%#p\n", __FUNCTION__, 812 812 uOffset, paSeg, cSeg, cbRead, pvUser)); 813 813 PDRVDISKINTEGRITY pThis = PDMIMEDIAASYNC_2_DRVDISKINTEGRITY(pInterface); … … 948 948 949 949 /** @copydoc PDMIMEDIAASYNC::pfnStartDiscard */ 950 static DECLCALLBACK(int) drvdiskintStartDiscard(PPDMIMEDIA pInterface, PPDMRANGE paRanges, unsigned cRanges, void *pvUser)950 static DECLCALLBACK(int) drvdiskintStartDiscard(PPDMIMEDIAASYNC pInterface, PCRTRANGE paRanges, unsigned cRanges, void *pvUser) 951 951 { 952 952 int rc = VINF_SUCCESS; … … 961 961 if (pThis->hIoLogger) 962 962 { 963 rc = VDDbgIoLogStartDiscard(pThis->hIoLogger, true, (PVDRANGE)paRanges, cRanges, &hIoLogEntry);963 rc = VDDbgIoLogStartDiscard(pThis->hIoLogger, true, paRanges, cRanges, &hIoLogEntry); 964 964 AssertRC(rc); 965 965 } 966 966 967 rc = pThis->pDrvMedia ->pfnStartDiscard(pThis->pDrvMedia, paRanges, cRanges, pIoReq);967 rc = pThis->pDrvMediaAsync->pfnStartDiscard(pThis->pDrvMediaAsync, paRanges, cRanges, pIoReq); 968 968 969 969 if (rc == VINF_VD_ASYNC_IO_FINISHED) … … 1062 1062 1063 1063 /** @copydoc PDMIMEDIA::pfnDiscard */ 1064 static DECLCALLBACK(int) drvdiskintDiscard(PPDMIMEDIA pInterface, P PDMRANGE paRanges, unsigned cRanges)1064 static DECLCALLBACK(int) drvdiskintDiscard(PPDMIMEDIA pInterface, PCRTRANGE paRanges, unsigned cRanges) 1065 1065 { 1066 1066 int rc = VINF_SUCCESS; … … 1070 1070 if (pThis->hIoLogger) 1071 1071 { 1072 rc = VDDbgIoLogStartDiscard(pThis->hIoLogger, false, (PVDRANGE)paRanges, cRanges, &hIoLogEntry);1072 rc = VDDbgIoLogStartDiscard(pThis->hIoLogger, false, paRanges, cRanges, &hIoLogEntry); 1073 1073 AssertRC(rc); 1074 1074 } … … 1112 1112 rc = drvdiskintWriteRecord(pThis, pIoReq->paSeg, pIoReq->cSeg, pIoReq->off, pIoReq->cbTransfer); 1113 1113 else if (pIoReq->enmTxDir == DRVDISKAIOTXDIR_DISCARD) 1114 rc = drvdiskintDiscardRecords(pThis, p aRanges,cRanges);1114 rc = drvdiskintDiscardRecords(pThis, pIoReq->paRanges, pIoReq->cRanges); 1115 1115 else 1116 1116 AssertMsg(pIoReq->enmTxDir == DRVDISKAIOTXDIR_FLUSH, ("Huh?\n"));
Note:
See TracChangeset
for help on using the changeset viewer.