Changeset 27557 in vbox for trunk/src/VBox/VMM/PDMAsyncCompletionFile.cpp
- Timestamp:
- Mar 20, 2010 9:14:43 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/PDMAsyncCompletionFile.cpp
r27495 r27557 868 868 PPDMACEPFILEMGR pAioMgr = NULL; 869 869 870 pEpFile->cbEndpoint = pEpFile->cbFile; 870 871 pEpFile->pTasksFreeTail = pEpFile->pTasksFreeHead; 871 872 pEpFile->cTasksCached = 0; … … 970 971 AssertRC(rc); 971 972 973 /* endpoint and real file size should better be equal now. */ 974 AssertMsg(pEpFile->cbFile == pEpFile->cbEndpoint, 975 ("Endpoint and real file size should match now!\n")); 976 972 977 /* 973 978 * If the async I/O manager is in failsafe mode this is the only endpoint … … 1051 1056 STAM_PROFILE_ADV_STOP(&pEpFile->StatWrite, Write); 1052 1057 1058 /* Increase endpoint size. */ 1059 if ( RT_SUCCESS(rc) 1060 && ((uint64_t)off + cbWrite) > pEpFile->cbEndpoint) 1061 ASMAtomicWriteU64(&pEpFile->cbEndpoint, (uint64_t)off + cbWrite); 1062 1053 1063 return rc; 1054 1064 } … … 1088 1098 PPDMASYNCCOMPLETIONENDPOINTFILE pEpFile = (PPDMASYNCCOMPLETIONENDPOINTFILE)pEndpoint; 1089 1099 1090 *pcbSize = ASMAtomicReadU64(&pEpFile->cb File);1100 *pcbSize = ASMAtomicReadU64(&pEpFile->cbEndpoint); 1091 1101 1092 1102 return VINF_SUCCESS;
Note:
See TracChangeset
for help on using the changeset viewer.