VirtualBox

Changeset 17653 in vbox


Ignore:
Timestamp:
Mar 10, 2009 11:28:34 PM (16 years ago)
Author:
vboxsync
Message:

Main: Make diffs created on Immutable hard disks (and on ((grand-)children of Immutable hard disks) auto-reset by default.

File:
1 edited

Legend:

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

    r17652 r17653  
    35843584                target->mVirtualBox->removeDependentChild (target);
    35853585
     3586                /* diffs for immutable hard disks are auto-reset by default */
     3587                target->mm.autoReset =
     3588                    that->root()->mm.type == HardDiskType_Immutable ?
     3589                    TRUE : FALSE;
     3590
    35863591                /* register with mVirtualBox as the last step and move to
    35873592                 * Created state only on success (leaving an orphan file is
    35883593                 * better than breaking media registry consistency) */
    3589                 rc = that->mVirtualBox->registerHardDisk(target);
     3594                rc = that->mVirtualBox->registerHardDisk (target);
    35903595
    35913596                if (FAILED (rc))
     
    36113616                /* back to NotCreated on failiure */
    36123617                target->m.state = MediaState_NotCreated;
     3618
     3619                target->mm.autoReset = FALSE;
    36133620
    36143621                /* reset UUID to prevent it from being reused next time */
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