VirtualBox

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


Ignore:
Timestamp:
Jan 9, 2008 10:57:05 AM (17 years ago)
Author:
vboxsync
Message:

Big virtual disk changeset containing several modifications

  • remove the always buggy translation setting and replace it with two sets of geometries, physical and logical
  • complete vmdk creation (fixed/dynamic variants, both split in 2G chunks and single file)
  • implemented VBoxHDD-new generic snapshot support, i.e. diff image creation and image merging (completely untested, I'm pretty sure there are bugs)
  • assorted changes which generalize the VBoxHDD-new interfaces (both externally and internally)
File:
1 edited

Legend:

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

    r6173 r6291  
    36123612    CHECK_READY();
    36133613
    3614 /// @todo (r=dmik) will need this if we add suppord for differencing VMDKs
     3614/// @todo (r=dmik) will need this if we add support for differencing VMDKs
    36153615//
    36163616//     /* only a non-differencing image knows the logical size */
     
    37713771                mFilePathFull.raw());
    37723772
    3773 /// @todo (r=dmik) will need this if we add suppord for differencing VMDKs
     3773/// @todo (r=dmik) will need this if we add support for differencing VMDKs
    37743774//         if (isDifferencing())
    37753775//             return setError (E_FAIL,
     
    39403940    return E_NOTIMPL;
    39413941
    3942 /// @todo (r=dmik) will need this if we add suppord for differencing VMDKs
     3942/// @todo (r=dmik) will need this if we add support for differencing VMDKs
    39433943//  Use code from HVirtualDiskImage::cloneToImage as an example.
    39443944}
     
    39603960    return E_NOTIMPL;
    39613961
    3962 /// @todo (r=dmik) will need this if we add suppord for differencing VMDKs
     3962/// @todo (r=dmik) will need this if we add support for differencing VMDKs
    39633963//  Use code from HVirtualDiskImage::createDiffImage as an example.
    39643964}
     
    41234123        if (!mParent)
    41244124        {
    4125             uint64_t size = VDGetSize (mContainer);
     4125            uint64_t size = VDGetSize (mContainer, 0);
    41264126            /* convert to MBytes */
    41274127            mSize = size / 1024 / 1024;
     
    49594959        if (!mParent)
    49604960        {
    4961             uint64_t size = VDGetSize (mContainer);
     4961            uint64_t size = VDGetSize (mContainer, 0);
    49624962            /* convert to MBytes */
    49634963            mSize = size / 1024 / 1024;
     
    58235823        if (!mParent)
    58245824        {
    5825             uint64_t size = VDGetSize (mContainer);
     5825            uint64_t size = VDGetSize (mContainer, 0);
    58265826            /* convert to MBytes */
    58275827            mSize = size / 1024 / 1024;
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