VirtualBox

Ignore:
Timestamp:
Oct 21, 2010 1:05:39 PM (14 years ago)
Author:
vboxsync
Message:

Main/Medium: new MediumType_Readonly, replaces the DeviceType_DVD hacks and later will allow truly readonly floppies and so on.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/MachineImpl.cpp

    r33300 r33307  
    1134911349        {
    1135011350            MediumType_T mediumType = pMedium->getType();
    11351             bool fIsReadOnlyImage =    devType == DeviceType_DVD
    11352                                     || mediumType == MediumType_Shareable;
     11351            bool fIsReadOnlyLock =    mediumType == MediumType_Readonly
     11352                                   || mediumType == MediumType_Shareable;
    1135311353            bool fIsVitalImage = (devType == DeviceType_HardDisk);
    1135411354
    1135511355            mrc = pMedium->createMediumLockList(fIsVitalImage /* fFailIfInaccessible */,
    11356                                                 !fIsReadOnlyImage /* fMediumLockWrite */,
     11356                                                !fIsReadOnlyLock /* fMediumLockWrite */,
    1135711357                                                NULL,
    1135811358                                                *pMediumLockList);
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