Changeset 75627 in vbox for trunk/src/VBox/Runtime/common/fs/fatvfs.cpp
- Timestamp:
- Nov 20, 2018 5:08:26 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/fs/fatvfs.cpp
r73097 r75627 731 731 */ 732 732 pPart = RTListGetFirst(&pChain->ListParts, RTFSFATCHAINPART, ListEntry); 733 while (idxPart-- > 1)733 while (idxPart-- > 0) 734 734 pPart = RTListGetNext(&pChain->ListParts, pPart, RTFSFATCHAINPART, ListEntry); 735 735 } … … 905 905 { 906 906 PRTFSFATCLUSTERMAPCACHE pFatCache = pThis->pFatCache; 907 Log3(("rtFsFatClusterMap_FlushWorker: %p %#x %#x\n", pThis, iFirstEntry, iLastEntry)); 907 908 908 909 /* … … 1226 1227 1227 1228 /* Next cluster. */ 1229 #ifdef LOG_ENABLED 1230 const uint32_t idxPrevCluster = idxCluster; 1231 #endif 1228 1232 bool fOdd = idxCluster & 1; 1229 1233 uint32_t offFat = idxCluster * 3 / 2; … … 1233 1237 else 1234 1238 idxCluster &= 0x0fff; 1239 Log4(("Fat/ReadChain12: [%#x] %#x (next: %#x)\n", pChain->cClusters - 1, idxPrevCluster, idxCluster)); 1235 1240 } 1236 1241 } … … 1383 1388 if (idxCluster & 1) 1384 1389 { 1390 Log3(("Fat/SetCluster12: [%#x]: %#x -> %#x\n", idxCluster, (((pbFat[offFat]) & 0xf0) >> 4) | ((unsigned)pbFat[offFat + 1] << 4), uValue)); 1385 1391 pbFat[offFat] = ((uint8_t)0x0f & pbFat[offFat]) | ((uint8_t)uValue << 4); 1386 1392 pbFat[offFat + 1] = (uint8_t)(uValue >> 4); … … 1388 1394 else 1389 1395 { 1396 Log3(("Fat/SetCluster12: [%#x]: %#x -> %#x\n", idxCluster, pbFat[offFat] | ((pbFat[offFat + 1] & 0x0f) << 8), uValue)); 1390 1397 pbFat[offFat] = (uint8_t)uValue; 1391 1398 pbFat[offFat + 1] = ((uint8_t)0xf0 & pbFat[offFat + 1]) | (uint8_t)(uValue >> 8); … … 2299 2306 } 2300 2307 } 2308 Log3(("rtFsFatObj_SetSize: Returns %Rrc\n", rc)); 2301 2309 return rc; 2302 2310 } … … 2643 2651 if ( (fOpen & RTFILE_O_TRUNCATE) 2644 2652 || (fOpen & RTFILE_O_ACTION_MASK) == RTFILE_O_CREATE_REPLACE) 2653 { 2654 Log3(("rtFsFatFile_New: calling rtFsFatObj_SetSize to zap the file size.\n")); 2645 2655 rc = rtFsFatObj_SetSize(&pShared->Core, 0); 2656 } 2646 2657 if (RT_SUCCESS(rc)) 2647 2658 {
Note:
See TracChangeset
for help on using the changeset viewer.