Changeset 107596 in vbox for trunk/src/VBox/Storage
- Timestamp:
- Jan 9, 2025 12:27:40 PM (2 months ago)
- svn:sync-xref-src-repo-rev:
- 166671
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Storage/VD.cpp
r107467 r107596 895 895 if (idxEnd != -1) 896 896 { 897 cbThis = ( idxEnd - idxStart) * 512;897 cbThis = (size_t)(idxEnd - idxStart) * 512; 898 898 fAllocated = false; 899 899 } … … 904 904 idxEnd = ASMBitNextSet(pBlock->pbmAllocated, cSectors, idxStart); 905 905 if (idxEnd != -1) 906 cbThis = ( idxEnd - idxStart) * 512;906 cbThis = (size_t)(idxEnd - idxStart) * 512; 907 907 908 908 … … 2942 2942 if (idxEnd != -1) 2943 2943 { 2944 cbThis = ( idxEnd - idxStart) * 512;2944 cbThis = (size_t)(idxEnd - idxStart) * 512; 2945 2945 fAllocated = false; 2946 2946 } … … 2951 2951 idxEnd = ASMBitNextSet(pBlock->pbmAllocated, cSectors, idxStart); 2952 2952 if (idxEnd != -1) 2953 cbThis = ( idxEnd - idxStart) * 512;2953 cbThis = (size_t)(idxEnd - idxStart) * 512; 2954 2954 2955 2955 rc = pDisk->pLast->Backend->pfnDiscard(pDisk->pLast->pBackendData, pIoCtx, … … 4071 4071 rc = pVDIo->pInterfaceIo->pfnWriteSync(pVDIo->pInterfaceIo->Core.pvUser, 4072 4072 pIoStorage->pStorage, uOffset, 4073 Seg.pvSeg, cb Write, NULL);4073 Seg.pvSeg, cbTaskWrite, NULL); 4074 4074 if (RT_SUCCESS(rc)) 4075 4075 { 4076 Assert(pIoCtx->Req.Io.cbTransferLeft >= cb Write);4077 ASMAtomicSubU32(&pIoCtx->Req.Io.cbTransferLeft, (uint32_t)cb Write);4076 Assert(pIoCtx->Req.Io.cbTransferLeft >= cbTaskWrite); 4077 ASMAtomicSubU32(&pIoCtx->Req.Io.cbTransferLeft, (uint32_t)cbTaskWrite); 4078 4078 } 4079 4079 } … … 6946 6946 rc2 = vdThreadStartWrite(pDisk); 6947 6947 AssertRC(rc2); 6948 fLockWrite = true;6948 /*fLockWrite = true; No effect */ 6949 6949 6950 6950 pDisk->pImageRelay = pImageTo; … … 6952 6952 rc2 = vdThreadFinishWrite(pDisk); 6953 6953 AssertRC(rc2); 6954 fLockWrite = false;6954 /*fLockWrite = false; No effect */ 6955 6955 } 6956 6956 … … 7047 7047 rc2 = vdThreadStartWrite(pDisk); 7048 7048 AssertRC(rc2); 7049 fLockWrite = true;7049 /*fLockWrite = true; No effect */ 7050 7050 7051 7051 pDisk->pImageRelay = NULL; … … 7053 7053 rc2 = vdThreadFinishWrite(pDisk); 7054 7054 AssertRC(rc2); 7055 fLockWrite = false;7055 /*fLockWrite = false; No effect */ 7056 7056 } 7057 7057 }
Note:
See TracChangeset
for help on using the changeset viewer.