Changeset 38631 in vbox for trunk/src/VBox/Devices
- Timestamp:
- Sep 5, 2011 10:53:16 AM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 73838
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/DrvDiskIntegrity.cpp
r38541 r38631 569 569 if (pThis->hIoLogger) 570 570 { 571 rc = VDDbgIoLogStart(pThis->hIoLogger, false, VDDBGIOLOG TXDIR_READ, off,571 rc = VDDbgIoLogStart(pThis->hIoLogger, false, VDDBGIOLOGREQ_READ, off, 572 572 cbRead, NULL, &hIoLogEntry); 573 573 AssertRC(rc); … … 622 622 RTSgBufInit(&SgBuf, &Seg, 1); 623 623 624 rc = VDDbgIoLogStart(pThis->hIoLogger, false, VDDBGIOLOG TXDIR_WRITE, off,624 rc = VDDbgIoLogStart(pThis->hIoLogger, false, VDDBGIOLOGREQ_WRITE, off, 625 625 cbWrite, &SgBuf, &hIoLogEntry); 626 626 AssertRC(rc); … … 665 665 if (pThis->hIoLogger) 666 666 { 667 int rc2 = VDDbgIoLogStart(pThis->hIoLogger, true, VDDBGIOLOG TXDIR_READ, uOffset,667 int rc2 = VDDbgIoLogStart(pThis->hIoLogger, true, VDDBGIOLOGREQ_READ, uOffset, 668 668 cbRead, NULL, &pIoReq->hIoLogEntry); 669 669 AssertRC(rc2); … … 721 721 RTSgBufInit(&SgBuf, paSeg, cSeg); 722 722 723 int rc2 = VDDbgIoLogStart(pThis->hIoLogger, true, VDDBGIOLOG TXDIR_WRITE, uOffset,723 int rc2 = VDDbgIoLogStart(pThis->hIoLogger, true, VDDBGIOLOGREQ_WRITE, uOffset, 724 724 cbWrite, &SgBuf, &pIoReq->hIoLogEntry); 725 725 AssertRC(rc2); … … 768 768 if (pThis->hIoLogger) 769 769 { 770 rc = VDDbgIoLogStart(pThis->hIoLogger, true, VDDBGIOLOG TXDIR_FLUSH, 0,770 rc = VDDbgIoLogStart(pThis->hIoLogger, true, VDDBGIOLOGREQ_FLUSH, 0, 771 771 0, NULL, &pIoReq->hIoLogEntry); 772 772 AssertRC(rc); … … 801 801 if (pThis->hIoLogger) 802 802 { 803 rc = VDDbgIoLogStart(pThis->hIoLogger, false, VDDBGIOLOG TXDIR_FLUSH, 0,803 rc = VDDbgIoLogStart(pThis->hIoLogger, false, VDDBGIOLOGREQ_FLUSH, 0, 804 804 0, NULL, &hIoLogEntry); 805 805 AssertRC(rc); … … 868 868 PDRVDISKINTEGRITY pThis = PDMIMEDIA_2_DRVDISKINTEGRITY(pInterface); 869 869 return pThis->pDrvMedia->pfnGetUuid(pThis->pDrvMedia, pUuid); 870 } 871 872 /** @copydoc PDMIMEDIA::pfnDiscard */ 873 static DECLCALLBACK(int) drvdiskintDiscard(PPDMIMEDIA pInterface, PPDMRANGE paRanges, unsigned cRanges) 874 { 875 int rc = VINF_SUCCESS; 876 VDIOLOGENT hIoLogEntry; 877 PDRVDISKINTEGRITY pThis = PDMIMEDIA_2_DRVDISKINTEGRITY(pInterface); 878 879 if (pThis->hIoLogger) 880 { 881 rc = VDDbgIoLogStartDiscard(pThis->hIoLogger, false, (PVDRANGE)paRanges, cRanges, &hIoLogEntry); 882 AssertRC(rc); 883 } 884 885 rc = pThis->pDrvMedia->pfnDiscard(pThis->pDrvMedia, paRanges, cRanges); 886 887 if (pThis->hIoLogger) 888 { 889 int rc2 = VDDbgIoLogComplete(pThis->hIoLogger, hIoLogEntry, rc, NULL); 890 AssertRC(rc2); 891 } 892 893 return rc; 870 894 } 871 895 … … 1097 1121 1098 1122 pThis->pDrvMediaAsync = PDMIBASE_QUERY_INTERFACE(pBase, PDMIMEDIAASYNC); 1123 1124 if (pThis->pDrvMedia->pfnDiscard) 1125 pThis->IMedia.pfnDiscard = drvdiskintDiscard; 1099 1126 1100 1127 if (pThis->fCheckConsistency)
Note:
See TracChangeset
for help on using the changeset viewer.