Changeset 38449 in vbox
- Timestamp:
- Aug 14, 2011 10:53:13 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Storage/VD.cpp
r38409 r38449 6014 6014 PVDIMAGE pImageTo = NULL; 6015 6015 6016 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",6017 pDiskFrom, nImage, pDiskTo, pszBackend, pszFilename, fMoveByRename, cbSize, uImageFlags, pDstUuid, uOpenFlags, pVDIfsOperation, pDstVDIfsImage, pDstVDIfsOperation));6016 LogFlowFunc(("pDiskFrom=%#p nImage=%u pDiskTo=%#p pszBackend=\"%s\" pszFilename=\"%s\" fMoveByRename=%d cbSize=%llu nImageFromSame=%u nImageToSame=%u uImageFlags=%#x pDstUuid=%#p uOpenFlags=%#x pVDIfsOperation=%#p pDstVDIfsImage=%#p pDstVDIfsOperation=%#p\n", 6017 pDiskFrom, nImage, pDiskTo, pszBackend, pszFilename, fMoveByRename, cbSize, nImageFromSame, nImageToSame, uImageFlags, pDstUuid, uOpenFlags, pVDIfsOperation, pDstVDIfsImage, pDstVDIfsOperation)); 6018 6018 6019 6019 PVDINTERFACE pIfProgress = VDInterfaceGet(pVDIfsOperation, … … 6213 6213 * Don't optimize if the image existed or if it is a child image. */ 6214 6214 bool fSuppressRedundantIo = ( !(pszFilename == NULL || cImagesTo > 0) 6215 || (nImageToSame != UINT32_MAX)); 6215 || (nImageToSame != VD_IMAGE_CONTENT_UNKNOWN)); 6216 unsigned cImagesFromReadBack, cImagesToReadBack; 6217 6218 if (nImageFromSame == VD_IMAGE_CONTENT_UNKNOWN) 6219 cImagesFromReadBack = 0; 6220 else 6221 { 6222 if (nImage == VD_LAST_IMAGE) 6223 cImagesFromReadBack = pDiskFrom->cImages - nImageFromSame - 1; 6224 else 6225 cImagesFromReadBack = nImage - nImageFromSame; 6226 } 6227 6228 if (nImageToSame == VD_IMAGE_CONTENT_UNKNOWN) 6229 cImagesToReadBack = 0; 6230 else 6231 cImagesToReadBack = pDiskTo->cImages - nImageToSame - 1; 6216 6232 6217 6233 /* Copy the data. */ 6218 6234 rc = vdCopyHelper(pDiskFrom, pImageFrom, pDiskTo, cbSize, 6219 nImageFromSame == VD_IMAGE_CONTENT_UNKNOWN ? 0 : nImage - nImageFromSame, 6220 nImageToSame == VD_IMAGE_CONTENT_UNKNOWN ? 0 : pDiskTo->cImages - nImageToSame + 1, 6235 cImagesFromReadBack, cImagesToReadBack, 6221 6236 fSuppressRedundantIo, pIfProgress, pCbProgress, 6222 6237 pDstIfProgress, pDstCbProgress);
Note:
See TracChangeset
for help on using the changeset viewer.