VirtualBox

Changeset 38664 in vbox


Ignore:
Timestamp:
Sep 6, 2011 4:11:24 PM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
73877
Message:

For ATAPI devices, fail recalibrate and clear DRDY on aborted commands.

File:
1 edited

Legend:

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

    r38661 r38664  
    37703770                    ataSetSignature(s);
    37713771                ataCmdError(s, ABRT_ERR);
     3772                ataUnsetStatus(s, ATA_STAT_READY);
    37723773                ataSetIRQ(s); /* Shortcut, do not use AIO thread. */
    37733774            }
    37743775            break;
     3776        case ATA_RECALIBRATE:
     3777            if (s->fATAPI)
     3778                goto abort_cmd;
     3779            /* fall through */
    37753780        case ATA_INITIALIZE_DEVICE_PARAMETERS:
    3776         case ATA_RECALIBRATE:
    37773781            ataCmdOK(s, ATA_STAT_SEEK);
    37783782            ataSetIRQ(s); /* Shortcut, do not use AIO thread. */
     
    39913995        abort_cmd:
    39923996            ataCmdError(s, ABRT_ERR);
     3997            if (s->fATAPI)
     3998                ataUnsetStatus(s, ATA_STAT_READY);
    39933999            ataSetIRQ(s); /* Shortcut, do not use AIO thread. */
    39944000            break;
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