VirtualBox

Changeset 38873 in vbox for trunk/src/VBox/Main/xml


Ignore:
Timestamp:
Sep 27, 2011 8:58:22 AM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
74195
Message:

Main: Add API to set the discard flag for harddisks

File:
1 edited

Legend:

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

    r38100 r38873  
    16931693                  && (fTempEject                == a.fTempEject)
    16941694                  && (fNonRotational            == a.fNonRotational)
     1695                  && (fDiscard                  == a.fDiscard)
    16951696                  && (lPort                     == a.lPort)
    16961697                  && (lDevice                   == a.lDevice)
     
    29892990                att.deviceType = DeviceType_HardDisk;
    29902991                pelmAttached->getAttributeValue("nonrotational", att.fNonRotational);
     2992                pelmAttached->getAttributeValue("discard", att.fDiscard);
    29912993            }
    29922994            else if (m->sv >= SettingsVersion_v1_9)
     
    42374239                    if (att.fNonRotational)
    42384240                        pelmDevice->setAttribute("nonrotational", att.fNonRotational);
     4241                    if (att.fDiscard)
     4242                        pelmDevice->setAttribute("discard", att.fDiscard);
    42394243                    break;
    42404244
     
    46034607    {
    46044608        // VirtualBox 4.0 adds HD audio, CPU priorities, fault tolerance,
    4605         // per-machine media registries, VRDE, JRockitVE, bandwidth gorups,
     4609        // per-machine media registries, VRDE, JRockitVE, bandwidth groups,
    46064610        // ICH9 chipset
    46074611        if (    hardwareMachine.audioAdapter.controllerType == AudioControllerType_HDA
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