VirtualBox

Changeset 28149 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
Apr 9, 2010 3:43:44 PM (15 years ago)
Author:
vboxsync
Message:

Main/OVF: write vbox:uuid attribute for each disk on export

Location:
trunk/src/VBox/Main
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/ApplianceImplExport.cpp

    r28098 r28149  
    635635
    636636/**
     637 * Called from Appliance::writeFS() for each virtual system (machine) that needs XML written out.
    637638 *
    638  * @param vsdescThis
     639 * @param elmToAddVirtualSystemsTo XML element to append elements to.
     640 * @param vsdescThis The IVirtualSystemDescription instance for which to write XML.
     641 * @param enFormat OVF format (0.9 or 1.0).
     642 * @param stack Structure for temporary private data shared with caller.
    639643 */
    640644void Appliance::buildXMLForOneVirtualSystem(xml::ElementNode &elmToAddVirtualSystemsTo,
     
    14201424            if (FAILED(rc)) throw rc;
    14211425
    1422             /* We are always exporting to vmdfk stream optimized for now */
     1426            Bstr uuidSource;
     1427            rc = pSourceDisk->COMGETTER(Id)(uuidSource.asOutParam());
     1428            if (FAILED(rc)) throw rc;
     1429            Guid guidSource(uuidSource);
     1430
     1431            // We are always exporting to VMDK stream optimized for now
    14231432            Bstr bstrSrcFormat = L"VMDK";
    14241433
     
    14831492            pelmDisk->setAttribute("ovf:fileRef", strFileRef);
    14841493            pelmDisk->setAttribute("ovf:format", "http://www.vmware.com/specifications/vmdk.html#sparse");      // must be sparse or ovftool chokes
     1494            pelmDisk->setAttribute("vbox:uuid", Utf8StrFmt("%RTuuid", guidSource.raw()).c_str());
    14851495        }
    14861496
  • trunk/src/VBox/Main/SnapshotImpl.cpp

    r28110 r28149  
    782782////////////////////////////////////////////////////////////////////////////////
    783783
    784 DEFINE_EMPTY_CTOR_DTOR (SnapshotMachine)
     784DEFINE_EMPTY_CTOR_DTOR(SnapshotMachine)
    785785
    786786HRESULT SnapshotMachine::FinalConstruct()
  • trunk/src/VBox/Main/include/MachineImpl.h

    r28110 r28149  
    9393
    9494public:
    95 
    96 //     enum InitMode { Init_New, Init_Import, Init_Registered };
    9795
    9896    enum StateDependency
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