VirtualBox

Changeset 34734 in vbox for trunk


Ignore:
Timestamp:
Dec 6, 2010 11:11:37 AM (14 years ago)
Author:
vboxsync
Message:

Main/Medium: for newly created media which doesn't support creating (iSCSI) mark the medium as Inaccessible, as otherwise no one fills in the "small details", such as the exact medium variant. Easiest and most consistent fix which doesn't need queryInfo() which might take really long, especially for iSCSI.

File:
1 edited

Legend:

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

    r34499 r34734  
    968968       )
    969969    {
    970         /* storage for hard disks of this format can neither be explicitly
     970        /* Storage for hard disks of this format can neither be explicitly
    971971         * created by VirtualBox nor deleted, so we place the hard disk to
    972          * Created state here and also add it to the registry */
    973         m->state = MediumState_Created;
     972         * Inaccessible state here and also add it to the registry. The
     973         * state means that one has to use RefreshState() to update the
     974         * medium format specific fields. */
     975        m->state = MediumState_Inaccessible;
    974976        // create new UUID
    975977        unconst(m->id).create();
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