VirtualBox

Changeset 24112 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Oct 27, 2009 10:54:06 AM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
54003
Message:

Storage/VMDK: fix bug in handling split images, causing failure to read/write.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Storage/VmdkHDDCore.cpp

    r23223 r24112  
    40404040        {
    40414041            pExtent = &pImage->pExtents[i];
    4042             *puSectorInExtent = offSector + pImage->pExtents[i].uSectorOffset;
     4042            *puSectorInExtent = offSector;
    40434043            break;
    40444044        }
     
    58095809        }
    58105810
    5811         /* Clip write range to remain in this extent. */
     5811        /* Clip read range to remain in this extent. */
    58125812        cbToRead = RT_MIN(cbRead, VMDK_SECTOR2BYTE(pExtent->uSectorOffset + pExtent->cNominalSectors - uSectorExtentRel));
    5813         /* Clip write range to remain into current data segment. */
     5813        /* Clip read range to remain into current data segment. */
    58145814        cbToRead = RT_MIN(cbToRead, cbLeftInCurrentSegment);
    58155815
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette