VirtualBox

Changeset 30286 in vbox


Ignore:
Timestamp:
Jun 17, 2010 2:55:21 PM (14 years ago)
Author:
vboxsync
Message:

Main/Settings: fixed determination if we require settings V1_9 or V1_10 depending if the host cache should be disabled or not

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/xml/Settings.cpp

    r29873 r30286  
    39413941    // or more than one floppy drive present or the DVD is not at the secondary
    39423942    // master; this check is a bit more complicated
    3943     if (m->sv < SettingsVersion_v1_9)
     3943    //
     3944    // settings version 1.10 is required if the host cache should be disabled
     3945    if (m->sv < SettingsVersion_v1_10)
    39443946    {
    39453947        size_t cDVDs = 0;
     
    39483950        // need to run thru all the storage controllers to figure this out
    39493951        for (StorageControllersList::const_iterator it = storageMachine.llStorageControllers.begin();
    3950              it != storageMachine.llStorageControllers.end()
    3951                 && m->sv < SettingsVersion_v1_9;
     3952             it != storageMachine.llStorageControllers.end();
    39523953             ++it)
    39533954        {
     
    39573958                 ++it2)
    39583959            {
    3959                 if (sctl.ulInstance != 0)       // we can only write the StorageController/@Instance attribute with v1.9
     3960                // we can only write the StorageController/@Instance attribute with v1.9
     3961                if (sctl.ulInstance != 0)     
    39603962                {
    3961                     m->sv = SettingsVersion_v1_9;
    3962                     break;
     3963                    if (m->sv < SettingsVersion_v1_9)
     3964                        m->sv = SettingsVersion_v1_9;
    39633965                }
    39643966
     
    39713973                       )
    39723974                    {
    3973                         m->sv = SettingsVersion_v1_9;
    3974                         break;
     3975                        if (m->sv < SettingsVersion_v1_9)
     3976                            m->sv = SettingsVersion_v1_9;
    39753977                    }
    39763978
     
    39843986                {
    39853987                    m->sv = SettingsVersion_v1_10;
    3986                     break;
     3988                    break; /* abort the loop -- we will not raise the version further */
    39873989                }
    39883990            }
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