VirtualBox

Ignore:
Timestamp:
Nov 19, 2009 10:14:17 AM (15 years ago)
Author:
vboxsync
Message:

Frontends/VBoxManage: fix error message when trying to change any drive at runtime (as that's not the same as changing the medium), and clearly separate it from hard disk hot-plugging attempts. no functionality change.

File:
1 edited

Legend:

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

    r24678 r24780  
    185185    }
    186186
    187     if (   fRunTime
    188         && (   !RTStrICmp(pszMedium, "none")
    189             || !RTStrICmp(pszType, "hdd")))
    190     {
    191         errorArgument("DVD/HardDisk Drives can't be changed while the VM is still running\n");
     187    if (fRunTime && !RTStrICmp(pszType, "hdd"))
     188    {
     189        errorArgument("Hard disk drives cannot be changed while the VM is running\n");
    192190        goto leave;
    193191    }
    194192
     193    if (fRunTime && !RTStrICmp(pszMedium, "none"))
     194    {
     195        errorArgument("Drives cannot be removed while the VM is running\n");
     196        goto leave;
     197    }
     198
    195199    if (fRunTime && pszPassThrough)
    196200    {
    197         errorArgument("Drive passthrough state can't be changed while the VM is still running\n");
     201        errorArgument("Drive passthrough state can't be changed while the VM is running\n");
    198202        goto leave;
    199203    }
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