hyperv: let there be IDE disks

Adapted from: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=212721
PR:           https://forum.opnsense.org/index.php?topic=4405.0

(cherry picked from commit bdf347ea9d)
This commit is contained in:
Franco Fichtner 2017-02-02 08:24:22 +01:00
parent 2b43b65ed2
commit 28f90e8e8c

View file

@ -2031,7 +2031,12 @@ storvsc_io_done(struct hv_storvsc_request *reqp)
* If there are errors, for example, invalid LUN,
* host will inform VM through SRB status.
*/
ccb->ccb_h.status |= CAM_SEL_TIMEOUT;
if (storvsc_get_storage_type(sc->hs_dev->device) ==
DRIVER_STORVSC) {
ccb->ccb_h.status |= CAM_SEL_TIMEOUT;
} else {
ccb->ccb_h.status |= CAM_DEV_NOT_THERE;
}
} else {
ccb->ccb_h.status |= CAM_REQ_CMP;
}