VirtualBox

Ignore:
Timestamp:
Sep 13, 2010 2:24:06 PM (14 years ago)
Author:
vboxsync
Message:

Main-OVF: make manifest file creation optional

File:
1 edited

Legend:

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

    r31677 r32448  
    825825        }
    826826        case ImportFileWithManifest:
    827         case WriteFile:
    828827        {
    829828            ++cOperations;          // another one for creating the manifest
     
    832831            m->ulWeightForManifestOperation = m->ulTotalDisksMB / 10;
    833832            ulTotalOperationsWeight += m->ulWeightForManifestOperation;
     833            if (fOVA)
     834            {
     835                // Another operation for packing
     836                ++cOperations;
     837
     838                // assume that packing the files into the archive has the same weight than creating all files in the ovf exporting step
     839                ulTotalOperationsWeight += m->ulTotalDisksMB;
     840            }
     841            break;
     842        }
     843        case WriteFile:
     844        {
     845            // assume that creating the manifest will take 10% of the time it takes to export the disks
     846            if (m->fManifest)
     847            {
     848                ++cOperations;          // another one for creating the manifest
     849
     850                m->ulWeightForManifestOperation = m->ulTotalDisksMB / 10;
     851                ulTotalOperationsWeight += m->ulWeightForManifestOperation;
     852            }
    834853            if (fOVA)
    835854            {
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