VirtualBox

Changeset 41019 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Apr 22, 2012 6:05:26 PM (13 years ago)
Author:
vboxsync
Message:

Devices/ATA: Introduce option to suppress overwriting inquiry data for ATAPI drives in passthrough mode

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

Legend:

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

    r40841 r41019  
    252252    /** Enable passing through commands directly to the ATAPI drive. */
    253253    bool            fATAPIPassthrough;
     254    /** Flag whether to overwrite inquiry data in passthrough mode. */
     255    bool            fOverwriteInquiry;
    254256    /** Number of errors we've reported to the release log.
    255257     * This is to prevent flooding caused by something going horribly wrong.
     
    22802282                s->cbTotalTransfer = cbTransfer;
    22812283
    2282             if (s->aATAPICmd[0] == SCSI_INQUIRY)
     2284            if (   s->aATAPICmd[0] == SCSI_INQUIRY
     2285                && s->fOverwriteInquiry)
    22832286            {
    22842287                /* Make sure that the real drive cannot be identified.
     
    75997602                                        N_("PIIX3 configuration error: failed to read \"ATAPIRevision\" as string"));
    76007603                        }
     7604
     7605                        rc = CFGMR3QueryBoolDef(pCfgNode, "OverwriteInquiry", &pIf->fOverwriteInquiry, true);
     7606                        if (RT_FAILURE(rc))
     7607                            return PDMDEV_SET_ERROR(pDevIns, rc,
     7608                                        N_("PIIX3 configuration error: failed to read \"OverwriteInquiry\" as boolean"));
    76017609                    }
    76027610                }
  • trunk/src/VBox/Devices/testcase/tstDeviceStructSizeRC.cpp

    r40841 r41019  
    783783    GEN_CHECK_OFF(ATADevState, StatBytesWritten);
    784784    GEN_CHECK_OFF(ATADevState, StatFlushes);
     785    GEN_CHECK_OFF(ATADevState, fNonRotational);
    785786    GEN_CHECK_OFF(ATADevState, fATAPIPassthrough);
     787    GEN_CHECK_OFF(ATADevState, fOverwriteInquiry);
    786788    GEN_CHECK_OFF(ATADevState, cErrors);
    787789    GEN_CHECK_OFF(ATADevState, pDrvBase);
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