Changeset 33082 in vbox
- Timestamp:
- Oct 12, 2010 8:26:27 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/VBoxHDD.h
r32691 r33082 2177 2177 * This parameter is used if and only if a true copy is created. 2178 2178 * In all rename/move cases or copy to existing image cases the modification UUIDs are copied over. 2179 * @param uOpenFlags Image file open mode, see VD_OPEN_FLAGS_* constants. 2180 * Only used if the destination image is created. 2179 2181 * @param pVDIfsOperation Pointer to the per-operation VD interface list. 2180 2182 * @param pDstVDIfsImage Pointer to the per-image VD interface list, for the … … 2187 2189 bool fMoveByRename, uint64_t cbSize, 2188 2190 unsigned uImageFlags, PCRTUUID pDstUuid, 2189 PVDINTERFACE pVDIfsOperation,2191 unsigned uOpenFlags, PVDINTERFACE pVDIfsOperation, 2190 2192 PVDINTERFACE pDstVDIfsImage, 2191 2193 PVDINTERFACE pDstVDIfsOperation); -
trunk/src/VBox/Devices/Storage/VBoxHDD.cpp
r32858 r33082 5446 5446 * This parameter is used if and only if a true copy is created. 5447 5447 * In all rename/move cases the UUIDs are copied over. 5448 * @param uOpenFlags Image file open mode, see VD_OPEN_FLAGS_* constants. 5449 * Only used if the destination image is created. 5448 5450 * @param pVDIfsOperation Pointer to the per-operation VD interface list. 5449 5451 * @param pDstVDIfsImage Pointer to the per-image VD interface list, for the … … 5456 5458 bool fMoveByRename, uint64_t cbSize, 5457 5459 unsigned uImageFlags, PCRTUUID pDstUuid, 5458 PVDINTERFACE pVDIfsOperation,5460 unsigned uOpenFlags, PVDINTERFACE pVDIfsOperation, 5459 5461 PVDINTERFACE pDstVDIfsImage, 5460 5462 PVDINTERFACE pDstVDIfsOperation) … … 5466 5468 PVDIMAGE pImageTo = NULL; 5467 5469 5468 LogFlowFunc(("pDiskFrom=%#p nImage=%u pDiskTo=%#p pszBackend=\"%s\" pszFilename=\"%s\" fMoveByRename=%d cbSize=%llu pVDIfsOperation=%#p pDstVDIfsImage=%#p pDstVDIfsOperation=%#p\n",5469 pDiskFrom, nImage, pDiskTo, pszBackend, pszFilename, fMoveByRename, cbSize, pVDIfsOperation, pDstVDIfsImage, pDstVDIfsOperation));5470 LogFlowFunc(("pDiskFrom=%#p nImage=%u pDiskTo=%#p pszBackend=\"%s\" pszFilename=\"%s\" fMoveByRename=%d cbSize=%llu uImageFlags=%#x pDstUuid=%#p uOpenFlags=%#x pVDIfsOperation=%#p pDstVDIfsImage=%#p pDstVDIfsOperation=%#p\n", 5471 pDiskFrom, nImage, pDiskTo, pszBackend, pszFilename, fMoveByRename, cbSize, uImageFlags, pDstUuid, uOpenFlags, pVDIfsOperation, pDstVDIfsImage, pDstVDIfsOperation)); 5470 5472 5471 5473 PVDINTERFACE pIfProgress = VDInterfaceGet(pVDIfsOperation, … … 5568 5570 szComment[sizeof(szComment) - 1] = '\0'; 5569 5571 5570 unsigned uOpenFlagsFrom;5571 uOpenFlagsFrom = pImageFrom->Backend->pfnGetOpenFlags(pImageFrom->pBackendData);5572 5573 5572 rc2 = vdThreadFinishRead(pDiskFrom); 5574 5573 AssertRC(rc2); … … 5595 5594 uImageFlags, szComment, &ImageUuid, 5596 5595 NULL /* pParentUuid */, 5597 uOpenFlags From& ~VD_OPEN_FLAGS_READONLY,5596 uOpenFlags & ~VD_OPEN_FLAGS_READONLY, 5598 5597 pDstVDIfsImage, NULL); 5599 5598 … … 5625 5624 uImageFlags, szComment, 5626 5625 &PCHSGeometryFrom, &LCHSGeometryFrom, 5627 NULL, uOpenFlagsFrom & ~VD_OPEN_FLAGS_READONLY, pDstVDIfsImage, NULL); 5626 NULL, uOpenFlags & ~VD_OPEN_FLAGS_READONLY, 5627 pDstVDIfsImage, NULL); 5628 5628 5629 5629 rc2 = vdThreadStartWrite(pDiskTo); … … 5759 5759 if (!RTUuidIsNull(&ImageModificationUuid)) 5760 5760 pImageTo->Backend->pfnSetModificationUuid(pImageTo->pBackendData, &ImageModificationUuid); 5761 5762 /* Set the requested open flags if they differ from the value 5763 * required for creating the image and copying the contents. */ 5764 if ( pImageTo && pszFilename 5765 && uOpenFlags != (uOpenFlags & ~VD_OPEN_FLAGS_READONLY)) 5766 rc = pImageTo->Backend->pfnSetOpenFlags(pImageTo->pBackendData, 5767 uOpenFlags); 5761 5768 } 5762 5769 } while (0); -
trunk/src/VBox/Frontends/VBoxManage/VBoxInternalManage.cpp
r32718 r33082 1556 1556 else 1557 1557 { 1558 vrc = VDCopy(pDisk, 0, pDisk, "VMDK", dst.c_str(), true, 0, VD_IMAGE_FLAGS_NONE, NULL, NULL, NULL, NULL); 1558 vrc = VDCopy(pDisk, 0, pDisk, "VMDK", dst.c_str(), true, 0, 1559 VD_IMAGE_FLAGS_NONE, NULL, VD_OPEN_FLAGS_NORMAL, 1560 NULL, NULL, NULL); 1559 1561 if (RT_FAILURE(vrc)) 1560 1562 { … … 1838 1840 vrc = VDCopy(pSrcDisk, VD_LAST_IMAGE, pDstDisk, dstformat.c_str(), 1839 1841 dst.c_str(), false, 0, VD_VMDK_IMAGE_FLAGS_STREAM_OPTIMIZED, 1840 NULL, NULL, NULL, NULL);1842 NULL, VD_OPEN_FLAGS_NORMAL, NULL, NULL, NULL); 1841 1843 if (RT_FAILURE(vrc)) 1842 1844 { -
trunk/src/VBox/Main/MediumImpl.cpp
r33078 r33082 6518 6518 task.mVariant, 6519 6519 targetId.raw(), 6520 VD_OPEN_FLAGS_NORMAL, 6520 6521 NULL /* pVDIfsOperation */, 6521 6522 pTarget->m->vdImageIfaces, … … 7107 7108 task.mVariant, 7108 7109 NULL /* pDstUuid */, 7110 VD_OPEN_FLAGS_NORMAL, 7109 7111 NULL /* pVDIfsOperation */, 7110 7112 task.mVDImageIfaces,
Note:
See TracChangeset
for help on using the changeset viewer.