Changeset 33186 in vbox
- Timestamp:
- Oct 18, 2010 9:26:01 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/VmdkHDDCore.cpp
r33182 r33186 5611 5611 &Marker.uType, sizeof(Marker.uType), 5612 5612 NULL); 5613 if (RT_FAILURE(rc)) 5614 return rc; 5613 5615 Marker.uType = RT_LE2H_U32(Marker.uType); 5614 5616 switch (Marker.uType) … … 5616 5618 case VMDK_MARKER_EOS: 5617 5619 uGrainSectorAbs++; 5620 /* Read (or mostly skip) to the end of file. Uses the 5621 * Marker (LBA sector) as it is unused anyway. This 5622 * makes sure that really everything is read in the 5623 * success case. If this read fails it means the image 5624 * is truncated, but this is harmless so ignore. */ 5625 vmdkFileReadSync(pImage, pExtent->pFile, 5626 VMDK_SECTOR2BYTE(uGrainSectorAbs) 5627 + 511, 5628 &Marker.uSector, 1, NULL); 5618 5629 break; 5619 5630 case VMDK_MARKER_GT:
Note:
See TracChangeset
for help on using the changeset viewer.