VirtualBox

Changeset 57527 in vbox


Ignore:
Timestamp:
Aug 25, 2015 10:23:56 AM (9 years ago)
Author:
vboxsync
Message:

Storage/DrvDiskIntegrity: Fixes

File:
1 edited

Legend:

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

    r57358 r57527  
    11551155}
    11561156
     1157/** @copydoc PDMIMEDIA::pfnIoBufAlloc */
     1158static DECLCALLBACK(int) drvdiskintIoBufAlloc(PPDMIMEDIA pInterface, size_t cb, void **ppvNew)
     1159{
     1160    LogFlowFunc(("\n"));
     1161    PDRVDISKINTEGRITY pThis = PDMIMEDIA_2_DRVDISKINTEGRITY(pInterface);
     1162
     1163    return pThis->pDrvMedia->pfnIoBufAlloc(pThis->pDrvMedia, cb, ppvNew);
     1164}
     1165
     1166/** @copydoc PDMIMEDIA::pfnIoBufFree */
     1167static DECLCALLBACK(int) drvdiskintIoBufFree(PPDMIMEDIA pInterface, void *pv, size_t cb)
     1168{
     1169    LogFlowFunc(("\n"));
     1170    PDRVDISKINTEGRITY pThis = PDMIMEDIA_2_DRVDISKINTEGRITY(pInterface);
     1171
     1172    return pThis->pDrvMedia->pfnIoBufFree(pThis->pDrvMedia, pv, cb);
     1173}
     1174
     1175/** @copydoc PDMIMEDIA::pfnReadPcBios */
     1176static DECLCALLBACK(int) drvdiskintReadPcBios(PPDMIMEDIA pInterface,
     1177                                              uint64_t off, void *pvBuf, size_t cbRead)
     1178{
     1179    LogFlowFunc(("\n"));
     1180    PDRVDISKINTEGRITY pThis = PDMIMEDIA_2_DRVDISKINTEGRITY(pInterface);
     1181
     1182    return pThis->pDrvMedia->pfnReadPcBios(pThis->pDrvMedia, off, pvBuf, cbRead);
     1183}
     1184
    11571185/* -=-=-=-=- IMediaAsyncPort -=-=-=-=- */
    11581186
     
    13891417    pThis->IMedia.pfnGetUuid             = drvdiskintGetUuid;
    13901418    pThis->IMedia.pfnGetSectorSize       = drvdiskintGetSectorSize;
     1419    pThis->IMedia.pfnIoBufAlloc          = drvdiskintIoBufAlloc;
     1420    pThis->IMedia.pfnIoBufFree           = drvdiskintIoBufFree;
     1421    pThis->IMedia.pfnReadPcBios          = drvdiskintReadPcBios;
    13911422
    13921423    /* IMediaAsync */
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