VirtualBox

Changeset 29002 in vbox


Ignore:
Timestamp:
May 4, 2010 11:14:34 AM (15 years ago)
Author:
vboxsync
Message:

Main: Move the I/O cache setting from GUI to Main

Location:
trunk/src/VBox
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UINewVMWzd.cpp

    r29001 r29002  
    687687        hdCtr = m_Machine.GetStorageControllerByName(ctrHdName);
    688688        hdCtr.SetControllerType(hdStorageControllerType);
    689 
    690         /* Disable the I/O cache if this is not a IDE controller */
    691         if (ctrHdBus != KStorageBus_IDE)
    692             hdCtr.SetIoBackend(KIoBackendType_Unbuffered);
    693689    }
    694690    else
  • trunk/src/VBox/Main/StorageControllerImpl.cpp

    r28800 r29002  
    144144    m->bd->mInstance = aInstance;
    145145    m->bd->mStorageBus = aStorageBus;
    146     m->bd->mIoBackendType = IoBackendType_Buffered;
     146    if (aStorageBus != StorageBus_IDE)
     147        m->bd->mIoBackendType = IoBackendType_Unbuffered;
     148    else
     149        m->bd->mIoBackendType = IoBackendType_Buffered;
    147150
    148151    switch (aStorageBus)
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