Changeset 17836 in vbox for trunk/src/VBox/Devices/Storage
- Timestamp:
- Mar 13, 2009 3:26:27 PM (16 years ago)
- Location:
- trunk/src/VBox/Devices/Storage
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
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
Note:
See TracChangeset
for help on using the changeset viewer.