VirtualBox

Changeset 3935 in vbox


Ignore:
Timestamp:
Jul 31, 2007 10:01:48 AM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
23344
Message:

Fix the if nesting and condition for the geometry fix that hopefully
makes all VMDK images work.

File:
1 edited

Legend:

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

    r3835 r3935  
    55145514                rc = pIf->pDrvBlockBios->pfnSetGeometry(pIf->pDrvBlockBios, pIf->cCHSCylinders, pIf->cCHSHeads, pIf->cCHSSectors);
    55155515            }
    5516             else if (enmTranslation == PDMBIOSTRANSLATION_LBA)
     5516        }
     5517        else
     5518        {
     5519            PDMBIOSTRANSLATION enmTranslation;
     5520            rc = pIf->pDrvBlockBios->pfnGetTranslation(pIf->pDrvBlockBios, &enmTranslation);
     5521            if ((   rc == VERR_PDM_TRANSLATION_NOT_SET
     5522                 || enmTranslation == PDMBIOSTRANSLATION_LBA)
     5523                &&  pIf->cCHSSectors == 63
     5524                && (pIf->cCHSHeads != 16 || pIf->cCHSCylinders >= 1024))
    55175525            {
    55185526                /* Use the official LBA physical CHS geometry. */
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette