Changeset 17836 in vbox
- Timestamp:
- Mar 13, 2009 3:26:27 PM (16 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/VBoxHDD.h
r16962 r17836 1262 1262 * @param fMoveByRename If true, attempt to perform a move by renaming (if successful the new size is ignored). 1263 1263 * @param cbSize New image size (0 means leave unchanged). 1264 * @param uImageFlags Flags specifying special destination image features. 1264 1265 * @param pDstUuid New UUID of the destination image. If NULL, a new UUID is created. 1265 1266 * This parameter is used if and only if a true copy is created. … … 1273 1274 VBOXDDU_DECL(int) VDCopy(PVBOXHDD pDiskFrom, unsigned nImage, PVBOXHDD pDiskTo, 1274 1275 const char *pszBackend, const char *pszFilename, 1275 bool fMoveByRename, uint64_t cbSize, PCRTUUID pDstUuid, 1276 bool fMoveByRename, uint64_t cbSize, 1277 unsigned uImageFlags, PCRTUUID pDstUuid, 1276 1278 PVDINTERFACE pVDIfsOperation, 1277 1279 PVDINTERFACE pDstVDIfsImage, -
trunk/src/VBox/Devices/Storage/VBoxHDD.cpp
r16963 r17836 1879 1879 * @param fMoveByRename If true, attempt to perform a move by renaming (if successful the new size is ignored). 1880 1880 * @param cbSize New image size (0 means leave unchanged). 1881 * @param uImageFlags Flags specifying special destination image features. 1881 1882 * @param pDstUuid New UUID of the destination image. If NULL, a new UUID is created. 1882 1883 * This parameter is used if and only if a true copy is created. … … 1890 1891 VBOXDDU_DECL(int) VDCopy(PVBOXHDD pDiskFrom, unsigned nImage, PVBOXHDD pDiskTo, 1891 1892 const char *pszBackend, const char *pszFilename, 1892 bool fMoveByRename, uint64_t cbSize, PCRTUUID pDstUuid, 1893 bool fMoveByRename, uint64_t cbSize, 1894 unsigned uImageFlags, PCRTUUID pDstUuid, 1893 1895 PVDINTERFACE pVDIfsOperation, 1894 1896 PVDINTERFACE pDstVDIfsImage, … … 1963 1965 if (cbSize == 0) 1964 1966 cbSize = cbSizeFrom; 1965 1966 unsigned uImageFlagsFrom;1967 uImageFlagsFrom = pImageFrom->Backend->pfnGetImageFlags(pImageFrom->pvBackendData);1968 1967 1969 1968 PDMMEDIAGEOMETRY PCHSGeometryFrom = {0, 0, 0}; … … 2013 2012 if (enmTypeFrom == VD_IMAGE_TYPE_DIFF) 2014 2013 { 2015 rc = VDCreateDiff(pDiskTo, pszBackend, pszFilename, uImageFlags From,2014 rc = VDCreateDiff(pDiskTo, pszBackend, pszFilename, uImageFlags, 2016 2015 szComment, &ImageUuid, &ParentUuid, uOpenFlagsFrom & ~VD_OPEN_FLAGS_READONLY, NULL, NULL); 2017 2016 } else { … … 2022 2021 2023 2022 rc = VDCreateBase(pDiskTo, pszBackend, pszFilename, enmTypeTo, 2024 cbSize, uImageFlags From, szComment,2023 cbSize, uImageFlags, szComment, 2025 2024 &PCHSGeometryFrom, &LCHSGeometryFrom, 2026 2025 NULL, uOpenFlagsFrom & ~VD_OPEN_FLAGS_READONLY, NULL, NULL); -
trunk/src/VBox/Devices/Storage/testcase/tstVD.cpp
r16873 r17836 735 735 rc = VDOpen(pVD, "VMDK", src, VD_OPEN_FLAGS_NORMAL, NULL); 736 736 CHECK("VDOpen()"); 737 rc = VDCopy(pVD, 0, pVD, "VMDK", dst, true, 0, NULL, NULL, NULL, NULL);737 rc = VDCopy(pVD, 0, pVD, "VMDK", dst, true, 0, VD_IMAGE_FLAGS_NONE, NULL, NULL, NULL, NULL); 738 738 CHECK("VDCopy()"); 739 739 -
trunk/src/VBox/Frontends/VBoxManage/VBoxInternalManage.cpp
r16873 r17836 1323 1323 else 1324 1324 { 1325 vrc = VDCopy(pDisk, 0, pDisk, "VMDK", Utf8Str(dst).raw(), true, 0, NULL, NULL, NULL, NULL);1325 vrc = VDCopy(pDisk, 0, pDisk, "VMDK", Utf8Str(dst).raw(), true, 0, VD_IMAGE_FLAGS_NONE, NULL, NULL, NULL, NULL); 1326 1326 if (RT_FAILURE(vrc)) 1327 1327 { … … 1600 1600 /* Create the output image */ 1601 1601 vrc = VDCopy(pSrcDisk, VD_LAST_IMAGE, pDstDisk, Utf8Str(dstformat).raw(), 1602 Utf8Str(dst).raw(), false, 0, NULL, NULL, NULL, NULL);1602 Utf8Str(dst).raw(), false, 0, VD_IMAGE_FLAGS_NONE, NULL, NULL, NULL, NULL); 1603 1603 if (RT_FAILURE(vrc)) 1604 1604 { -
trunk/src/VBox/Main/HardDiskImpl.cpp
r17825 r17836 2239 2239 * 2240 2240 * @param aTarget Target hard disk. 2241 * @param aVariant Precise image variant to create. 2241 2242 * @param aProgress Where to find/store a Progress object to track operation 2242 2243 * completion. … … 3400 3401 3401 3402 /* The object may request a specific UUID (through a special form of 3402 * the setLocation() argume t). Otherwise we have to generate it */3403 * the setLocation() argument). Otherwise we have to generate it */ 3403 3404 Guid id = that->m.id; 3404 3405 bool generateUuid = id.isEmpty(); … … 3440 3441 VD_IMAGE_TYPE_FIXED, 3441 3442 task->d.size * _1M, 3442 VD_IMAGE_FLAGS_NONE,3443 task->d.variant, 3443 3444 NULL, &geo, &geo, id.raw(), 3444 3445 VD_OPEN_FLAGS_NORMAL, … … 3560 3561 3561 3562 vrc = VDCreateDiff (hdd, targetFormat, targetLocation, 3562 VD_IMAGE_FLAGS_NONE,3563 task->d.variant, 3563 3564 NULL, targetId.raw(), 3564 3565 id.raw(), … … 3977 3978 3978 3979 /* The object may request a specific UUID (through a special form of 3979 * the setLocation() argume t). Otherwise we have to generate it */3980 * the setLocation() argument). Otherwise we have to generate it */ 3980 3981 Guid targetId = target->m.id; 3981 3982 bool generateUuid = targetId.isEmpty(); … … 4031 4032 4032 4033 vrc = VDCopy (hdd, 0, targetHdd, targetFormat, 4033 targetLocation, false, 0, targetId.raw(), 4034 NULL, target->mm.vdDiskIfaces, 4034 targetLocation, false, 0, task->d.variant, 4035 targetId.raw(), NULL, 4036 target->mm.vdDiskIfaces, 4035 4037 that->mm.vdDiskIfaces); 4036 4038 … … 4253 4255 4254 4256 vrc = VDCreateDiff (hdd, format, location, 4257 /// @todo use the same image variant as before 4255 4258 VD_IMAGE_FLAGS_NONE, 4256 4259 NULL, id.raw(), -
trunk/src/VBox/Main/idl/VirtualBox.xidl
r17835 r17836 8413 8413 <const name="VmdkStreamOptimized" value="0x04"> 8414 8414 <desc> 8415 VMDK streamOptimized image. Epecial import/export format which is8415 VMDK streamOptimized image. Special import/export format which is 8416 8416 read-only/append-only. 8417 8417 </desc>
Note:
See TracChangeset
for help on using the changeset viewer.