Changeset 18054 in vbox
- Timestamp:
- Mar 18, 2009 11:59:04 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/VHDHDDCore.cpp
r18051 r18054 887 887 /* Read in the block's bitmap. */ 888 888 rc = RTFileReadAt(pImage->File, 889 ( uint64_t)pImage->pBlockAllocationTable[cBlockAllocationTableEntry]* VHD_SECTOR_SIZE,889 ((uint64_t)pImage->pBlockAllocationTable[cBlockAllocationTableEntry]) * VHD_SECTOR_SIZE, 890 890 pImage->pu8Bitmap, pImage->cbDataBlockBitmap, NULL); 891 891 if (RT_SUCCESS(rc)) … … 958 958 959 959 cbRead = cSectors * VHD_SECTOR_SIZE; 960 Log(("%s: Sectors free: uVhdOffset=%llu cbRead=%u\n", uVhdOffset, cbRead));960 Log(("%s: Sectors free: uVhdOffset=%llu cbRead=%u\n", __FUNCTION__, uVhdOffset, cbRead)); 961 961 rc = VERR_VD_BLOCK_FREE; 962 962 } … … 1044 1044 /* Read in the block's bitmap. */ 1045 1045 rc = RTFileReadAt(pImage->File, 1046 ( uint64_t)pImage->pBlockAllocationTable[cBlockAllocationTableEntry]* VHD_SECTOR_SIZE,1046 ((uint64_t)pImage->pBlockAllocationTable[cBlockAllocationTableEntry]) * VHD_SECTOR_SIZE, 1047 1047 pImage->pu8Bitmap, pImage->cbDataBlockBitmap, NULL); 1048 1048 if (RT_SUCCESS(rc)) … … 1061 1061 /* Write the bitmap back. */ 1062 1062 rc = RTFileWriteAt(pImage->File, 1063 pImage->pBlockAllocationTable[cBlockAllocationTableEntry]* VHD_SECTOR_SIZE,1063 ((uint64_t)pImage->pBlockAllocationTable[cBlockAllocationTableEntry]) * VHD_SECTOR_SIZE, 1064 1064 pImage->pu8Bitmap, pImage->cbDataBlockBitmap, NULL); 1065 1065 }
Note:
See TracChangeset
for help on using the changeset viewer.