VirtualBox

Changeset 37674 in vbox for trunk


Ignore:
Timestamp:
Jun 28, 2011 9:27:21 PM (13 years ago)
Author:
vboxsync
Message:

FE/VBoxManage: Enable support for disk hotplug when using the CLI

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageStorageController.cpp

    r37525 r37674  
    283283    {
    284284        bool fRunTime = (st == SessionType_Shared);
     285
    285286        if (fRunTime)
    286287        {
    287             if (devTypeRequested == DeviceType_HardDisk)
    288                 throw Utf8Str("Hard disk drives cannot be changed while the VM is running\n");
    289             else if (!RTStrICmp(pszMedium, "none"))
    290                 throw Utf8Str("Drives cannot be removed while the VM is running\n");
    291             else if (pszPassThrough)
     288            if (pszPassThrough)
    292289                throw Utf8Str("Drive passthrough state cannot be changed while the VM is running\n");
    293290            else if (pszBandwidthGroup)
     
    647644                case DeviceType_HardDisk:
    648645                {
    649                     if (fRunTime)
    650                         throw Utf8Str("Hard disk attachments cannot be changed while the VM is running");
    651 
    652646                    // if there is anything attached at the given location, remove it
    653647                    machine->DetachDevice(Bstr(pszCtl).raw(), port, device);
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