Changeset 103501 in vbox for trunk/src/VBox/Storage
- Timestamp:
- Feb 21, 2024 3:43:55 PM (9 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Storage/VDI.cpp
r99739 r103501 480 480 } 481 481 482 if ( getImageLCHSGeometry(pHeader)483 && (getImageLCHSGeometry(pHeader))->cbSector != VDI_GEOMETRY_SECTOR_SIZE)484 {485 LogRel(("VDI: wrong sector size (%d != %d)\n",486 (getImageLCHSGeometry(pHeader))->cbSector, VDI_GEOMETRY_SECTOR_SIZE));482 PVDIDISKGEOMETRY pLCHSGeom = getImageLCHSGeometry(pHeader); 483 if ( pLCHSGeom 484 && pLCHSGeom->cbSector != VDI_GEOMETRY_SECTOR_SIZE) 485 { 486 LogRel(("VDI: wrong sector size (%d != %d)\n", pLCHSGeom->cbSector, VDI_GEOMETRY_SECTOR_SIZE)); 487 487 fFailed = true; 488 488 } … … 1513 1513 /* Check size. Maximum 4PB-3M. No tricks with adjusting the 1M block size 1514 1514 * so far, which would extend the size. */ 1515 if ( !cbSize 1516 || cbSize >= _1P * 4 - _1M * 3 1515 if ( cbSize >= _1P * 4 - _1M * 3 1517 1516 || cbSize < VDI_IMAGE_DEFAULT_BLOCK_SIZE 1518 1517 || (cbSize % 512)) … … 2563 2562 /* Check size. Maximum 4PB-3M. No tricks with adjusting the 1M block size 2564 2563 * so far, which would extend the size. */ 2565 if ( !cbSize 2566 || cbSize >= _1P * 4 - _1M * 3 2564 if ( cbSize >= _1P * 4 - _1M * 3 2567 2565 || cbSize < VDI_IMAGE_DEFAULT_BLOCK_SIZE) 2568 2566 return VERR_VD_INVALID_SIZE;
Note:
See TracChangeset
for help on using the changeset viewer.