VirtualBox

Changeset 19921 in vbox for trunk/src/VBox


Ignore:
Timestamp:
May 22, 2009 5:30:19 PM (16 years ago)
Author:
vboxsync
Message:

Storage/VMDK: avoid overlapping reads for streamOptimized files

File:
1 edited

Legend:

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

    r18966 r19921  
    784784        VMDKINFLATESTATE InflateState;
    785785        size_t cbActuallyRead;
    786 
    787         rc = RTFileReadAt(pVmdkFile->File, uOffset, &Marker, sizeof(Marker), NULL);
     786        size_t cbMarker = sizeof(Marker);
     787
     788        if (uMarker == VMDK_MARKER_IGNORE)
     789            cbMarker -= sizeof(Marker.uType);
     790        rc = RTFileReadAt(pVmdkFile->File, uOffset, &Marker, cbMarker, NULL);
    788791        if (RT_FAILURE(rc))
    789792            return rc;
Note: See TracChangeset for help on using the changeset viewer.

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