VirtualBox

Changeset 37656 in vbox for trunk


Ignore:
Timestamp:
Jun 28, 2011 10:38:39 AM (13 years ago)
Author:
vboxsync
Message:

Main: Clarify the error message if the controller doesn't support hotplugging. Reject hotplugging DVD drives for now (needs further testing)

File:
1 edited

Legend:

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

    r37606 r37656  
    34253425    if (fHotplug && !isControllerHotplugCapable(ctrlType))
    34263426        return setError(VBOX_E_INVALID_VM_STATE,
    3427                         tr("Invalid machine state: %s"),
    3428                         Global::stringifyMachineState(mData->mMachineState));
     3427                        tr("Controller '%ls' does not support hotplugging"),
     3428                        aControllerName);
     3429
     3430    if (fHotplug && aType == DeviceType_DVD)
     3431        return setError(VBOX_E_INVALID_VM_STATE,
     3432                        tr("Attaching a DVD drive while the VM is running is not supported"));
    34293433
    34303434    // check that the port and device are not out of range
     
    38453849    if (fHotplug && !isControllerHotplugCapable(ctrlType))
    38463850        return setError(VBOX_E_INVALID_VM_STATE,
    3847                         tr("Invalid machine state: %s"),
    3848                         Global::stringifyMachineState(mData->mMachineState));
     3851                        tr("Controller '%ls' does not support hotplugging"),
     3852                        aControllerName);
     3853
     3854    if (fHotplug && aType == DeviceType_DVD)
     3855        return setError(VBOX_E_INVALID_VM_STATE,
     3856                        tr("Detaching a DVD drive while the VM is running is not supported"));
    38493857
    38503858    MediumAttachment *pAttach = findAttachment(mMediaData->mAttachments,
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