VirtualBox

Changeset 54340 in vbox for trunk/src/VBox/Devices/Storage


Ignore:
Timestamp:
Feb 20, 2015 6:51:07 PM (10 years ago)
Author:
vboxsync
Message:

Storage/VD: Allow different filter chains for reads and writes (required by disk image encryption to encrypt images afterwards)

File:
1 edited

Legend:

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

    r53539 r54340  
    17671767        {
    17681768            /* Unload the crypto filter first to make sure it doesn't access the keys anymore. */
    1769             rc = VDFilterRemove(pThis->pDisk);
     1769            rc = VDFilterRemove(pThis->pDisk, VD_FILTER_FLAGS_DEFAULT);
    17701770            AssertRC(rc);
    17711771
     
    17871787
    17881788            /* Load the crypt filter plugin. */
    1789             rc = VDFilterAdd(pThis->pDisk, "CRYPT", pVDIfFilter);
     1789            rc = VDFilterAdd(pThis->pDisk, "CRYPT", VD_FILTER_FLAGS_DEFAULT, pVDIfFilter);
    17901790            if (RT_FAILURE(rc))
    17911791                pThis->pIfSecKey = NULL;
     
    22352235            AssertRC(rc);
    22362236
    2237             rc = VDFilterAdd(pThis->pDisk, pszFilterName, pVDIfsFilter);
     2237            rc = VDFilterAdd(pThis->pDisk, pszFilterName, VD_FILTER_FLAGS_DEFAULT, pVDIfsFilter);
    22382238
    22392239            MMR3HeapFree(pszFilterName);
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