Changes between Initial Version and Version 1 of Ticket #12465, comment 2
- Timestamp:
- Dec 13, 2013 2:12:29 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #12465, comment 2
initial v1 6 6 * Calculate the real offset in the file. 7 7 */ 8 uVhdOffset = ((uint64_t)pImage->pBlockAllocationTable[cBlockAllocationTableEntry] + pImage->cDataBlockBitmapSectors + cBATEntryIndex) * VHD_SECTOR_SIZE; 8 uVhdOffset = ((uint64_t)pImage->pBlockAllocationTable[cBlockAllocationTableEntry] 9 + pImage->cDataBlockBitmapSectors 10 + cBATEntryIndex) * VHD_SECTOR_SIZE; 9 11 10 12 /* Write data. */ … … 19 21 */ 20 22 rc = vdIfIoIntFileWriteUser(pImage->pIfIo, pImage->pStorage, 21 pImage->uCurrentEndOfFile + pImage->cDataBlockBitmapSectors * VHD_SECTOR_SIZE, 23 pImage->uCurrentEndOfFile 24 + pImage->cDataBlockBitmapSectors * VHD_SECTOR_SIZE, 22 25 pIoCtx, cbWrite, 23 26 vhdAsyncExpansionDataComplete,