Changeset 66057 in vbox
- Timestamp:
- Mar 12, 2017 10:44:49 PM (8 years ago)
- File:
-
- 1 edited
-
trunk/src/VBox/Devices/Storage/DevATA.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/DevATA.cpp
r66006 r66057 2161 2161 if (s->uTxDir == PDMMEDIATXDIR_FROM_DEVICE) 2162 2162 { 2163 Assert(cbTransfer <= s->cbAtapiPassthroughTransfer);2164 2163 /* 2165 2164 * Reply with the same amount of data as the real drive 2166 2165 * but only if the command wasn't split. 2167 2166 */ 2168 # if 0 /// @todo This destroys commands where cbTotalTransfer > cbIOBuffer 2169 if (s->cbElementaryTransfer < s->cbIOBuffer) 2167 if (s->cbAtapiPassthroughTransfer < s->cbIOBuffer) 2170 2168 s->cbTotalTransfer = cbTransfer; 2171 # endif2172 2169 2173 2170 if ( s->aATAPICmd[0] == SCSI_INQUIRY … … 2190 2187 * transfer size. But the I/O buffer size limits what can actually be 2191 2188 * done in one transfer, so set the actual value of the buffer end. */ 2192 s->cbElementaryTransfer = cbTransfer; 2193 if (cbTransfer >= s->cbAtapiPassthroughTransfer) 2189 Assert(cbTransfer <= s->cbAtapiPassthroughTransfer); 2190 s->cbElementaryTransfer = cbTransfer; 2191 s->cbAtapiPassthroughTransfer -= cbTransfer; 2192 if (!s->cbAtapiPassthroughTransfer) 2194 2193 { 2195 2194 s->iSourceSink = ATAFN_SS_NULL;
Note:
See TracChangeset
for help on using the changeset viewer.

