VirtualBox

Changeset 16963 in vbox for trunk/src/VBox/Devices/Storage


Ignore:
Timestamp:
Feb 20, 2009 2:16:49 AM (16 years ago)
Author:
vboxsync
Message:

VBoxHDD: Hacked VDCopy so that 'VBoxManage clonehd nt4.vdi nt4.raw -format RAW' works.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Storage/VBoxHDD.cpp

    r16962 r16963  
    20162016                              szComment, &ImageUuid, &ParentUuid, uOpenFlagsFrom & ~VD_OPEN_FLAGS_READONLY, NULL, NULL);
    20172017        } else {
    2018             rc = VDCreateBase(pDiskTo, pszBackend, pszFilename, enmTypeFrom,
     2018            VDIMAGETYPE enmTypeTo = enmTypeFrom; /** @todo Please, review this! It's an ugly hack I think... */
     2019            if (    !strcmp(pszBackend, "RAW")
     2020                &&  enmTypeTo != VD_IMAGE_TYPE_FIXED)
     2021                enmTypeTo = VD_IMAGE_TYPE_FIXED;
     2022
     2023            rc = VDCreateBase(pDiskTo, pszBackend, pszFilename, enmTypeTo,
    20192024                              cbSize, uImageFlagsFrom, szComment,
    20202025                              &PCHSGeometryFrom, &LCHSGeometryFrom,
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