VirtualBox

Changeset 7281 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Mar 4, 2008 4:24:09 PM (17 years ago)
Author:
vboxsync
Message:

Accept PCHS=0/0/0 when creating images. Will be fixed when the image is used first anyway.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Storage/VBoxHDD-new.cpp

    r7277 r7281  
    10891089                       ("uImageFlags=%#x\n", uImageFlags),
    10901090                       rc = VERR_INVALID_PARAMETER);
     1091        /* The PCHS geometry fields may be 0 to leave it for later. */
    10911092        AssertMsgBreak(   VALID_PTR(pPCHSGeometry)
    10921093                       && pPCHSGeometry->cCylinders <= 16383
    1093                        && pPCHSGeometry->cCylinders != 0
    10941094                       && pPCHSGeometry->cHeads <= 16
    1095                        && pPCHSGeometry->cHeads != 0
    1096                        && pPCHSGeometry->cSectors <= 63
    1097                        && pPCHSGeometry->cSectors != 0,
     1095                       && pPCHSGeometry->cSectors <= 63,
    10981096                       ("pPCHSGeometry=%#p PCHS=%u/%u/%u\n", pPCHSGeometry,
    10991097                        pPCHSGeometry->cCylinders, pPCHSGeometry->cHeads,
     
    20302028        AssertMsgBreak(   VALID_PTR(pPCHSGeometry)
    20312029                       && pPCHSGeometry->cCylinders <= 16383
    2032                        && pPCHSGeometry->cCylinders != 0
    20332030                       && pPCHSGeometry->cHeads <= 16
    2034                        && pPCHSGeometry->cHeads != 0
    2035                        && pPCHSGeometry->cSectors <= 63
    2036                        && pPCHSGeometry->cSectors != 0,
     2031                       && pPCHSGeometry->cSectors <= 63,
    20372032                       ("pPCHSGeometry=%#p PCHS=%u/%u/%u\n", pPCHSGeometry,
    20382033                        pPCHSGeometry->cCylinders, pPCHSGeometry->cHeads,
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