VirtualBox

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


Ignore:
Timestamp:
Nov 24, 2011 9:52:15 PM (13 years ago)
Author:
vboxsync
Message:

PDMBlkCache: Clear all entries on reset to prevent that unwritten data is in the cache which can lead to data corruption in case the cache isn't used after the reset

File:
1 edited

Legend:

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

    r38878 r39414  
    19991999    LogFlowFunc(("\n"));
    20002000    PVBOXDISK pThis = PDMINS_2_DATA(pDrvIns, PVBOXDISK);
     2001
     2002    if (pThis->pBlkCache)
     2003    {
     2004        int rc = PDMR3BlkCacheClear(pThis->pBlkCache);
     2005        AssertRC(rc);
     2006    }
    20012007
    20022008    if (pThis->fBootAccelEnabled)
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