Changeset 36136 in vbox
- Timestamp:
- Mar 3, 2011 9:20:28 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Storage/VD.cpp
r36132 r36136 1315 1315 if (rc == VERR_VD_BLOCK_FREE) 1316 1316 { 1317 for (pCurrImage = pCurrImage->pPrev; 1318 pCurrImage != NULL && rc == VERR_VD_BLOCK_FREE; 1319 pCurrImage = pCurrImage->pPrev) 1317 while ( pCurrImage->pPrev != NULL 1318 && rc == VERR_VD_BLOCK_FREE) 1320 1319 { 1320 pCurrImage = pCurrImage->pPrev; 1321 1321 rc = pCurrImage->Backend->pfnAsyncRead(pCurrImage->pBackendData, 1322 1322 uOffset, cbThisRead, … … 2990 2990 VD_THREAD_IS_CRITSECT_OWNER(pDisk); 2991 2991 2992 Assert(cbRead > 0); 2993 2992 2994 /* Build the S/G array and spawn a new I/O task */ 2993 2995 while (cbRead) … … 2999 3001 cbTaskRead = RTSgBufSegArrayCreate(&pIoCtx->SgBuf, aSeg, &cSegments, cbRead); 3000 3002 3003 Assert(cSegments > 0); 3004 Assert(cbTaskRead > 0); 3001 3005 AssertMsg(cbTaskRead <= cbRead, ("Invalid number of bytes to read\n")); 3002 3006 … … 3058 3062 VD_THREAD_IS_CRITSECT_OWNER(pDisk); 3059 3063 3064 Assert(cbWrite > 0); 3065 3060 3066 /* Build the S/G array and spawn a new I/O task */ 3061 3067 while (cbWrite) … … 3067 3073 cbTaskWrite = RTSgBufSegArrayCreate(&pIoCtx->SgBuf, aSeg, &cSegments, cbWrite); 3068 3074 3075 Assert(cSegments > 0); 3076 Assert(cbTaskWrite > 0); 3069 3077 AssertMsg(cbTaskWrite <= cbWrite, ("Invalid number of bytes to write\n")); 3070 3078
Note:
See TracChangeset
for help on using the changeset viewer.