VirtualBox

Changeset 34930 in vbox for trunk


Ignore:
Timestamp:
Dec 9, 2010 11:47:58 PM (14 years ago)
Author:
vboxsync
Message:

DrvVD: Don't use the builtin cache when opening the image on readonly mode

File:
1 edited

Legend:

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

    r34434 r34930  
    364364            {
    365365                uint32_t fFlags =    (fOpen & RTFILE_O_ACCESS_MASK) == RTFILE_O_READ
    366                                    ? PDMACEP_FILE_FLAGS_READ_ONLY | PDMACEP_FILE_FLAGS_CACHING
     366                                   ? PDMACEP_FILE_FLAGS_READ_ONLY
    367367                                   : 0;
    368368                if (pThis->fShareable)
     
    372372                    fFlags |= PDMACEP_FILE_FLAGS_DONT_LOCK;
    373373                }
    374 #if 0
    375                 else
    376                     fFlags |= PDMACEP_FILE_FLAGS_CACHING;
    377 #endif
     374
    378375                rc = PDMR3AsyncCompletionEpCreateForFile(&pStorageBackend->pEndpoint,
    379376                                                         pszLocation, fFlags,
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