VirtualBox

Changeset 38671 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Sep 7, 2011 9:41:18 AM (13 years ago)
Author:
vboxsync
Message:

VD: Destroy the discard state if the flags are changed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Storage/VD.cpp

    r38657 r38671  
    80768076        fLockWrite = true;
    80778077
     8078        /* Destroy any discard state because the image might be changed to readonly mode. */
     8079        rc = vdDiscardStateDestroy(pDisk);
     8080        if (RT_FAILURE(rc))
     8081            break;
     8082
    80788083        PVDIMAGE pImage = vdGetImageByNumber(pDisk, nImage);
    80798084        AssertPtrBreakStmt(pImage, rc = VERR_VD_IMAGE_NOT_FOUND);
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