VirtualBox

Changeset 1795 in vbox


Ignore:
Timestamp:
Mar 29, 2007 12:30:45 PM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
19974
Message:

Fixed small problem with iSCSI translation detection (returns unknown
geometry). Also fixed small problem with LBA selection for disks between
512MB and 8GB (not triggered for VDIs).

Location:
trunk/src/VBox/Devices/Storage
Files:
2 edited

Legend:

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

    r1735 r1795  
    52435243            PDMBIOSTRANSLATION enmTranslation;
    52445244            rc = pIf->pDrvBlockBios->pfnGetTranslation(pIf->pDrvBlockBios, &enmTranslation);
     5245            if (rc == VERR_PDM_TRANSLATION_NOT_SET)
     5246            {
     5247                enmTranslation = PDMBIOSTRANSLATION_AUTO;
     5248                pIf->cCHSCylinders = 0;
     5249                rc = VINF_SUCCESS;
     5250            }
    52455251            AssertRC(rc);
    52465252
     
    52595265                     * disk must report proper PCHS values for disks bigger
    52605266                     * than approximately 512MB. */
    5261                     if (pIf->cCHSSectors == 63 && pIf->cCHSCylinders >= 1024)
     5267                    if (pIf->cCHSSectors == 63 && (pIf->cCHSHeads != 16 || pIf->cCHSCylinders >= 1024))
    52625268                    {
    52635269                        pIf->cCHSCylinders = pIf->cTotalSectors / 63 / 16;
  • trunk/src/VBox/Devices/Storage/DrvHostRawDisk.cpp

    r1784 r1795  
    401401        if (pThis->cCylinders != 0)
    402402        {
    403             if (pThis->cSectors == 63 && pThis->cCylinders >= 1024)
     403            if (pThis->cSectors == 63 && (pThis->cHeads != 16 || pThis->cCylinders >= 1024))
    404404            {
    405405                /* For big disks, use dummy PCHS values and let the BIOS
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