VirtualBox

Changeset 65480 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Jan 27, 2017 2:06:46 PM (8 years ago)
Author:
vboxsync
Message:

Devices/Storage/DrvDiskIntegrity: Fixes and an extra CFGM option to tweak whether to log the request data in the I/O load

File:
1 edited

Legend:

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

    r65479 r65480  
    868868{
    869869    PDRVDISKINTEGRITY pThis = PDMIMEDIA_2_DRVDISKINTEGRITY(pInterface);
    870     return pThis->pDrvMedia->pfnBiosIsVisible(pInterface);
     870    return pThis->pDrvMedia->pfnBiosIsVisible(pThis->pDrvMedia);
    871871}
    872872
     
    16471647                                    "HistorySize\0"
    16481648                                    "IoLog\0"
     1649                                    "IoLogData\0"
    16491650                                    "PrepopulateRamDisk\0"
    16501651                                    "ReadAfterWrite\0"
     
    16711672    rc = CFGMR3QueryBoolDef(pCfg, "RecordWriteBeforeCompletion", &pThis->fRecordWriteBeforeCompletion, false);
    16721673    AssertRC(rc);
    1673     rc = CFGMR3QueryBoolDef(pCfg, "ValidateMemoryBuffers", &pThis->fValidateMemBufs, true);
     1674    rc = CFGMR3QueryBoolDef(pCfg, "ValidateMemoryBuffers", &pThis->fValidateMemBufs, false);
    16741675    AssertRC(rc);
    16751676
     1677    bool fIoLogData = false;
     1678    rc = CFGMR3QueryBoolDef(pCfg, "IoLogData", &fIoLogData, false);
     1679    AssertRC(rc);
    16761680    char *pszIoLogFilename = NULL;
    16771681    rc = CFGMR3QueryStringAlloc(pCfg, "IoLog", &pszIoLogFilename);
     
    17971801    if (pszIoLogFilename)
    17981802    {
    1799         rc = VDDbgIoLogCreate(&pThis->hIoLogger, pszIoLogFilename, VDDBG_IOLOG_LOG_DATA);
     1803        rc = VDDbgIoLogCreate(&pThis->hIoLogger, pszIoLogFilename, fIoLogData ? VDDBG_IOLOG_LOG_DATA : 0);
    18001804        MMR3HeapFree(pszIoLogFilename);
    18011805    }
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