VirtualBox

Changes between Initial Version and Version 1 of Ticket #12465, comment 2


Ignore:
Timestamp:
Dec 13, 2013 2:12:29 PM (10 years ago)
Author:
Petr Kurtin

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #12465, comment 2

    initial v1  
    66 * Calculate the real offset in the file.
    77 */
    8 uVhdOffset = ((uint64_t)pImage->pBlockAllocationTable[cBlockAllocationTableEntry] + pImage->cDataBlockBitmapSectors + cBATEntryIndex) * VHD_SECTOR_SIZE;
     8uVhdOffset = ((uint64_t)pImage->pBlockAllocationTable[cBlockAllocationTableEntry]
     9                           + pImage->cDataBlockBitmapSectors
     10                           + cBATEntryIndex) * VHD_SECTOR_SIZE;
    911
    1012/* Write data. */
     
    1921 */
    2022 rc = vdIfIoIntFileWriteUser(pImage->pIfIo, pImage->pStorage,
    21                              pImage->uCurrentEndOfFile + pImage->cDataBlockBitmapSectors * VHD_SECTOR_SIZE,
     23                             pImage->uCurrentEndOfFile
     24                               + pImage->cDataBlockBitmapSectors * VHD_SECTOR_SIZE,
    2225                             pIoCtx, cbWrite,
    2326                             vhdAsyncExpansionDataComplete,

© 2023 Oracle
ContactPrivacy policyTerms of Use