VirtualBox

Changeset 64155 in vbox for trunk/src/VBox/Main/src-client


Ignore:
Timestamp:
Oct 5, 2016 12:56:10 PM (8 years ago)
Author:
vboxsync
Message:

Console: Fix taking snapshots with a SATA controller configured. The medium reattach logic was not entirely correct

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/ConsoleImpl2.cpp

    r64145 r64155  
    40704070            char *pszDriverDetach = NULL;
    40714071            if (   !fHotplug
    4072                 && (enmBus == StorageBus_SATA || enmBus == StorageBus_SAS || enmBus == StorageBus_SCSI))
     4072                && (   (enmBus == StorageBus_SATA && enmDevType == DeviceType_DVD)
     4073                    || enmBus == StorageBus_SAS
     4074                    || enmBus == StorageBus_SCSI))
    40734075            {
    40744076                /* Get the current attached driver we have to detach. */
     
    41174119         * even for DVD devices) or if there is a hotplug event which rips out the complete device.
    41184120         */
    4119         if (enmBus == StorageBus_IDE || enmBus == StorageBus_Floppy || fHotplug)
     4121        if (   fHotplug
     4122            || enmBus == StorageBus_IDE
     4123            || enmBus == StorageBus_Floppy
     4124            || (enmBus == StorageBus_SATA && enmDevType != DeviceType_DVD))
    41204125        {
    41214126            fAddLun = true;
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