VirtualBox

Changeset 66235 in vbox


Ignore:
Timestamp:
Mar 23, 2017 5:01:10 PM (8 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
114156
Message:

DevATA: Fix READ (10)/(12) command, only respond with the ILLEGAL MODE FOR THIS TRACK when we can't convert the medium size to the 2048 byte sector size

File:
1 edited

Legend:

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

    r66201 r66235  
    32953295
    32963296            /* Check that the sector size is valid. */
    3297             uint64_t cbSector = 2048;
     3297            VDREGIONDATAFORM enmDataForm = VDREGIONDATAFORM_INVALID;
    32983298            int rc = s->pDrvMedia->pfnQueryRegionPropertiesForLba(s->pDrvMedia, iATAPILBA,
    3299                                                                   NULL, NULL, &cbSector, NULL);
     3299                                                                  NULL, NULL, NULL, &enmDataForm);
    33003300            AssertRC(rc);
    3301             if (cbSector != 2048)
     3301            if (   enmDataForm != VDREGIONDATAFORM_MODE1_2048
     3302                && enmDataForm != VDREGIONDATAFORM_MODE1_2352
     3303                && enmDataForm != VDREGIONDATAFORM_MODE2_2336
     3304                && enmDataForm != VDREGIONDATAFORM_MODE2_2352)
    33023305            {
    33033306                uint8_t abATAPISense[ATAPI_SENSE_SIZE];
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