VirtualBox

Ignore:
Timestamp:
May 14, 2010 3:24:19 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
61608
Message:

Main: Remove IoBackendType in StorageController and have a boolean setting fUseAsyncHostIOMgr instead; change XML settings and frontends accordingly; change VBoxManage storagectl syntax to --hostiocache on|off as well

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/vm/VBoxVMSettingsHD.cpp

    r29199 r29480  
    17961796        QUuid ctrId = QUuid (mStorageModel->data (ctrIndex, StorageModel::R_ItemId).toString());
    17971797
    1798         bool useIoCache = true;
    1799         if (controller.GetIoBackend() == KIoBackendType_Unbuffered)
    1800             useIoCache = false;
     1798        bool useIoCache = controller.GetUseHostIOCache();
    18011799
    18021800        mStorageModel->setData (ctrIndex, useIoCache, StorageModel::R_CtrIoCache);
     
    18441842        CStorageController ctr = mMachine.AddStorageController (ctrName, ctrBusType);
    18451843        ctr.SetControllerType (ctrType);
    1846         ctr.SetIoBackend(useIoCache ? KIoBackendType_Buffered : KIoBackendType_Unbuffered);
     1844        ctr.SetUseHostIOCache(useIoCache);
    18471845        int maxUsedPort = -1;
    18481846        for (int j = 0; j < mStorageModel->rowCount (ctrIndex); ++ j)
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette