VirtualBox

Changeset 33186 in vbox


Ignore:
Timestamp:
Oct 18, 2010 9:26:01 AM (14 years ago)
Author:
vboxsync
Message:

Storage/VMDK: read streamOptimized images to the very end

File:
1 edited

Legend:

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

    r33182 r33186  
    56115611                                      &Marker.uType, sizeof(Marker.uType),
    56125612                                      NULL);
     5613                if (RT_FAILURE(rc))
     5614                    return rc;
    56135615                Marker.uType = RT_LE2H_U32(Marker.uType);
    56145616                switch (Marker.uType)
     
    56165618                    case VMDK_MARKER_EOS:
    56175619                        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);
    56185629                        break;
    56195630                    case VMDK_MARKER_GT:
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