Changeset 107467 in vbox
- Timestamp:
- Jan 7, 2025 2:31:55 PM (3 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Storage/VD.cpp
r106061 r107467 3595 3595 } 3596 3596 } 3597 else if (fFlush)3597 else 3598 3598 RTMemFree(pMetaXfer); 3599 3599 … … 5540 5540 rc = VDInterfaceAdd(&pImage->VDIo.VDIfIo.Core, "VD_IO", VDINTERFACETYPE_IO, 5541 5541 pDisk, sizeof(VDINTERFACEIO), &pVDIfsImage); 5542 AssertRCBreak(rc); 5542 5543 pImage->VDIo.pInterfaceIo = &pImage->VDIo.VDIfIo; 5543 5544 } … … 5548 5549 rc = VDInterfaceAdd(&pImage->VDIo.VDIfIoInt.Core, "VD_IOINT", VDINTERFACETYPE_IOINT, 5549 5550 &pImage->VDIo, sizeof(VDINTERFACEIOINT), &pImage->pVDIfsImage); 5550 AssertRC (rc);5551 AssertRCBreak(rc); 5551 5552 5552 5553 pImage->uOpenFlags = uOpenFlags & (VD_OPEN_FLAGS_HONOR_SAME | VD_OPEN_FLAGS_DISCARD | VD_OPEN_FLAGS_IGNORE_FLUSH | VD_OPEN_FLAGS_INFORM_ABOUT_ZERO_BLOCKS); … … 5812 5813 rc = VDInterfaceAdd(&pCache->VDIo.VDIfIo.Core, "VD_IO", VDINTERFACETYPE_IO, 5813 5814 pDisk, sizeof(VDINTERFACEIO), &pVDIfsCache); 5815 AssertRCBreak(rc); 5814 5816 pCache->VDIo.pInterfaceIo = &pCache->VDIo.VDIfIo; 5815 5817 } … … 5820 5822 rc = VDInterfaceAdd(&pCache->VDIo.VDIfIoInt.Core, "VD_IOINT", VDINTERFACETYPE_IOINT, 5821 5823 &pCache->VDIo, sizeof(VDINTERFACEIOINT), &pCache->pVDIfsCache); 5822 AssertRC (rc);5824 AssertRCBreak(rc); 5823 5825 5824 5826 pCache->uOpenFlags = uOpenFlags & VD_OPEN_FLAGS_HONOR_SAME; … … 5971 5973 rc = VDInterfaceAdd(&pFilter->VDIo.VDIfIoInt.Core, "VD_IOINT", VDINTERFACETYPE_IOINT, 5972 5974 &pFilter->VDIo, sizeof(VDINTERFACEIOINT), &pFilter->pVDIfsFilter); 5973 AssertRC (rc);5975 AssertRCBreak(rc); 5974 5976 5975 5977 rc = pFilter->pBackend->pfnCreate(pDisk->pVDIfsDisk, fFlags & VD_FILTER_FLAGS_INFO, … … 6121 6123 rc = VDInterfaceAdd(&pImage->VDIo.VDIfIo.Core, "VD_IO", VDINTERFACETYPE_IO, 6122 6124 pDisk, sizeof(VDINTERFACEIO), &pVDIfsImage); 6125 AssertRCBreak(rc); 6123 6126 pImage->VDIo.pInterfaceIo = &pImage->VDIo.VDIfIo; 6124 6127 } … … 6129 6132 rc = VDInterfaceAdd(&pImage->VDIo.VDIfIoInt.Core, "VD_IOINT", VDINTERFACETYPE_IOINT, 6130 6133 &pImage->VDIo, sizeof(VDINTERFACEIOINT), &pImage->pVDIfsImage); 6131 AssertRC (rc);6134 AssertRCBreak(rc); 6132 6135 6133 6136 rc = vdFindImageBackend(pszBackend, &pImage->Backend); … … 6402 6405 rc = VDInterfaceAdd(&pImage->VDIo.VDIfIo.Core, "VD_IO", VDINTERFACETYPE_IO, 6403 6406 pDisk, sizeof(VDINTERFACEIO), &pVDIfsImage); 6407 AssertRCBreak(rc); 6404 6408 pImage->VDIo.pInterfaceIo = &pImage->VDIo.VDIfIo; 6405 6409 } … … 6410 6414 rc = VDInterfaceAdd(&pImage->VDIo.VDIfIoInt.Core, "VD_IOINT", VDINTERFACETYPE_IOINT, 6411 6415 &pImage->VDIo, sizeof(VDINTERFACEIOINT), &pImage->pVDIfsImage); 6412 AssertRC (rc);6416 AssertRCBreak(rc); 6413 6417 6414 6418 /* Create UUID if the caller didn't specify one. */ … … 6630 6634 rc = VDInterfaceAdd(&pCache->VDIo.VDIfIo.Core, "VD_IO", VDINTERFACETYPE_IO, 6631 6635 pDisk, sizeof(VDINTERFACEIO), &pVDIfsCache); 6636 AssertRCBreak(rc); 6632 6637 pCache->VDIo.pInterfaceIo = &pCache->VDIo.VDIfIo; 6633 6638 } … … 6638 6643 rc = VDInterfaceAdd(&pCache->VDIo.VDIfIoInt.Core, "VD_IOINT", VDINTERFACETYPE_IOINT, 6639 6644 &pCache->VDIo, sizeof(VDINTERFACEIOINT), &pCache->pVDIfsCache); 6640 AssertRC (rc);6645 AssertRCBreak(rc); 6641 6646 6642 6647 /* Create UUID if the caller didn't specify one. */ … … 7229 7234 /* Rename only works when backends are the same, are file based 7230 7235 * and the rename method is implemented. */ 7231 if ( fMoveByRename 7232 && !RTStrICmp(pszBackend, pImageFrom->Backend->pszBackendName) 7236 if ( !RTStrICmp(pszBackend, pImageFrom->Backend->pszBackendName) 7233 7237 && pImageFrom->Backend->uBackendCaps & VD_CAP_FILE 7234 7238 && pImageFrom->Backend->pfnRename) … … 7551 7555 rc = VDInterfaceAdd(&VDIfParent.Core, "VDCompact_ParentState", VDINTERFACETYPE_PARENTSTATE, 7552 7556 &ParentUser, sizeof(VDINTERFACEPARENTSTATE), &pVDIfsOperation); 7553 AssertRC (rc);7557 AssertRCBreak(rc); 7554 7558 } 7555 7559 … … 7777 7781 if (RT_SUCCESS(rc)) 7778 7782 { 7779 unsigned cImgCur = 0;7780 7783 unsigned uPercentStart = 0; 7781 7784 unsigned uPercentSpan = 100 / pDisk->cImages - 1; … … 7858 7861 7859 7862 pImage = pImage->pNext; 7860 cImgCur++;7861 7863 uPercentStart += uPercentSpan; 7862 7864 } 7863 7865 7864 7866 pDisk->fLocked = false; 7865 if (pvBuf) 7866 RTMemTmpFree(pvBuf); 7867 RTMemTmpFree(pvBuf); 7867 7868 } 7868 7869
Note:
See TracChangeset
for help on using the changeset viewer.