Changeset 8297 in vbox
- Timestamp:
- Apr 22, 2008 2:30:50 PM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 30051
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/VmdkHDDCore.cpp
r8229 r8297 3327 3327 if (pExtent->pRGD) 3328 3328 uRGTSector = pExtent->pRGD[uGDIndex]; 3329 else 3330 uRGTSector = 0; /**< avoid compiler warning */ 3329 3331 if (!uGTSector) 3330 3332 { … … 3359 3361 if (pExtent->pRGD) 3360 3362 { 3363 AssertReturn(!uRGTSector, VERR_VDI_INVALID_HEADER); 3361 3364 rc = RTFileGetSize(pExtent->File, &cbExtentSize); 3362 3365 if (VBOX_FAILURE(rc)) … … 3364 3367 Assert(!(cbExtentSize % 512)); 3365 3368 uRGTSector = VMDK_BYTE2SECTOR(cbExtentSize); 3369 /* Normally the redundant grain table is preallocated for hosted 3370 * sparse extents that support more than 32 bit sector numbers. So 3371 * this shouldn't ever happen on a valid extent. */ 3372 if (uRGTSector > UINT32_MAX) 3373 return VERR_VDI_INVALID_HEADER; 3366 3374 /* Write backup grain table by writing the required number of grain 3367 3375 * table cache chunks. Avoids dynamic memory allocation, but is a
Note:
See TracChangeset
for help on using the changeset viewer.