VirtualBox

Changeset 33661 in vbox


Ignore:
Timestamp:
Nov 1, 2010 3:05:54 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
67280
Message:

Main/OVF: never write the Machine/@stateFile attribute in machine XML when exporting OVF vbox:Machine, since we have no state

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/settings.h

    r33556 r33661  
    955955        BuildMachineXML_WriteVboxVersionAttribute = 0x02,
    956956        BuildMachineXML_SkipRemovableMedia = 0x04,
    957         BuildMachineXML_MediaRegistry = 0x08
     957        BuildMachineXML_MediaRegistry = 0x08,
     958        BuildMachineXML_SuppressSavedState = 0x10
    958959    };
    959960    void buildMachineXML(xml::ElementNode &elmMachine,
  • trunk/src/VBox/Main/ApplianceImplExport.cpp

    r33651 r33661  
    15481548        pConfig->buildMachineXML(*pelmVBoxMachine,
    15491549                                   settings::MachineConfigFile::BuildMachineXML_WriteVboxVersionAttribute
    1550                                  | settings::MachineConfigFile::BuildMachineXML_SkipRemovableMedia,
     1550                                 | settings::MachineConfigFile::BuildMachineXML_SkipRemovableMedia
     1551                                 | settings::MachineConfigFile::BuildMachineXML_SuppressSavedState,
    15511552                                        // but not BuildMachineXML_IncludeSnapshots nor BuildMachineXML_MediaRegistry
    15521553                                 pllElementsWithUuidAttributes);
  • trunk/src/VBox/Main/xml/Settings.cpp

    r33621 r33661  
    41434143 *      when this gets called for OVF export.
    41444144 *
     4145 * --   BuildMachineXML_SuppressSavedState: If set, the Machine/@stateFile
     4146 *      attribute is never set. This is also for the OVF export case because we
     4147 *      cannot save states with OVF.
     4148 *
    41454149 * @param elmMachine XML <Machine> element to add attributes and elements to.
    41464150 * @param fl Flags.
     
    41634167        elmMachine.createChild("Description")->addContent(machineUserData.strDescription);
    41644168    elmMachine.setAttribute("OSType", machineUserData.strOsType);
    4165     if (strStateFile.length())
     4169    if (    strStateFile.length()
     4170         && !(fl & BuildMachineXML_SuppressSavedState)
     4171       )
    41664172        elmMachine.setAttribute("stateFile", strStateFile);
    41674173    if (    (fl & BuildMachineXML_IncludeSnapshots)
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