VirtualBox

Changeset 33913 in vbox


Ignore:
Timestamp:
Nov 9, 2010 4:32:18 PM (14 years ago)
Author:
vboxsync
Message:

Main/Medium: if the medium is inaccessible try to get the up to date info and if that's not available refuse to change a medium to Shareable.

File:
1 edited

Legend:

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

    r33908 r33913  
    16571657            if (aType == MediumType_Shareable)
    16581658            {
     1659                if (m->state == MediumState_Inaccessible)
     1660                {
     1661                    HRESULT rc = queryInfo(false /* fSetImageId */, false /* fSetParentId */);
     1662                    if (FAILED(rc))
     1663                        return setError(rc,
     1664                                        tr("Cannot change type for medium '%s' to 'Shareable' because the medium is inaccesible"),
     1665                                        m->strLocationFull.c_str());
     1666                }
     1667
    16591668                MediumVariant_T variant = getVariant();
    16601669                if (!(variant & MediumVariant_Fixed))
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