Changeset 41019 in vbox for trunk/src/VBox/Devices
- Timestamp:
- Apr 22, 2012 6:05:26 PM (13 years ago)
- Location:
- trunk/src/VBox/Devices
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/DevATA.cpp
r40841 r41019 252 252 /** Enable passing through commands directly to the ATAPI drive. */ 253 253 bool fATAPIPassthrough; 254 /** Flag whether to overwrite inquiry data in passthrough mode. */ 255 bool fOverwriteInquiry; 254 256 /** Number of errors we've reported to the release log. 255 257 * This is to prevent flooding caused by something going horribly wrong. … … 2280 2282 s->cbTotalTransfer = cbTransfer; 2281 2283 2282 if (s->aATAPICmd[0] == SCSI_INQUIRY) 2284 if ( s->aATAPICmd[0] == SCSI_INQUIRY 2285 && s->fOverwriteInquiry) 2283 2286 { 2284 2287 /* Make sure that the real drive cannot be identified. … … 7599 7602 N_("PIIX3 configuration error: failed to read \"ATAPIRevision\" as string")); 7600 7603 } 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")); 7601 7609 } 7602 7610 } -
trunk/src/VBox/Devices/testcase/tstDeviceStructSizeRC.cpp
r40841 r41019 783 783 GEN_CHECK_OFF(ATADevState, StatBytesWritten); 784 784 GEN_CHECK_OFF(ATADevState, StatFlushes); 785 GEN_CHECK_OFF(ATADevState, fNonRotational); 785 786 GEN_CHECK_OFF(ATADevState, fATAPIPassthrough); 787 GEN_CHECK_OFF(ATADevState, fOverwriteInquiry); 786 788 GEN_CHECK_OFF(ATADevState, cErrors); 787 789 GEN_CHECK_OFF(ATADevState, pDrvBase);
Note:
See TracChangeset
for help on using the changeset viewer.