VirtualBox

Changeset 64321 in vbox


Ignore:
Timestamp:
Oct 19, 2016 2:56:27 PM (8 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
111394
Message:

Main/Console: Don't include the SCSI driver for passthrough devices

File:
1 edited

Legend:

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

    r64169 r64321  
    42584258        mapMediumAttachments[devicePath] = pMediumAtt;
    42594259
    4260         /*
    4261          * Insert the SCSI driver for hotplug events on the SCSI/USB based storage controllers
    4262          * or for SATA if the new device is a CD/DVD drive.
    4263          */
    4264         if (   (fHotplug || !fAttachDetach)
    4265             && (   (enmBus == StorageBus_SCSI || enmBus == StorageBus_SAS || enmBus == StorageBus_USB)
    4266                 || (enmBus == StorageBus_SATA && lType == DeviceType_DVD)))
    4267         {
    4268             InsertConfigString(pLunL0, "Driver", "SCSI");
    4269             InsertConfigNode(pLunL0, "AttachedDriver", &pLunL0);
    4270         }
    4271 
    42724260        ComPtr<IMedium> pMedium;
    42734261        hrc = pMediumAtt->COMGETTER(Medium)(pMedium.asOutParam());                          H();
     
    43194307        {
    43204308            hrc = pBwGroup->COMGETTER(Name)(strBwGroup.asOutParam());                       H();
     4309        }
     4310
     4311        /*
     4312         * Insert the SCSI driver for hotplug events on the SCSI/USB based storage controllers
     4313         * or for SATA if the new device is a CD/DVD drive.
     4314         */
     4315        if (   (fHotplug || !fAttachDetach)
     4316            && (   (enmBus == StorageBus_SCSI || enmBus == StorageBus_SAS || enmBus == StorageBus_USB)
     4317                || (enmBus == StorageBus_SATA && lType == DeviceType_DVD && !fPassthrough)))
     4318        {
     4319            InsertConfigString(pLunL0, "Driver", "SCSI");
     4320            InsertConfigNode(pLunL0, "AttachedDriver", &pLunL0);
    43214321        }
    43224322
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