freebsd-skq/sys/dev/hyperv/storvsc
sephe 2d2d509005 hyperv/stor: Save the response status and xfer length properly.
The current command response handling discards status and xfer
length unconditionally, so that all of the commands would be
considered successful, even if errors happened.  When errors
really happens, this causes all kinds of wiredness, since the
buffer will not be filled on the host side and sense data will
be ignored.

Most of the time, errors do not happen, however, error does
happen for the request sent immediately after the disk resizing.
Discarding the SCSI status (SCSI_STATUS_CHECK_COND) and sense
data (capacity changes) prevents the disk resizing from working
properly.

This commit saves the response status and xfer length properly
for later use.

Submitted by:	Dexuan Cui <decui microsoft com>
Noticed by:	sephe
MFC after:	3 days
Sponsored by:	Microsoft OSTC
Differential Revision:	https://reviews.freebsd.org/D7181
2016-07-12 02:57:13 +00:00
..
hv_storvsc_drv_freebsd.c hyperv/stor: Save the response status and xfer length properly. 2016-07-12 02:57:13 +00:00
hv_vstorage.h hyperv/stor: Enable INQUIRY result check only on WIN10 like host systems 2016-05-12 03:29:29 +00:00