mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 09:41:03 -04:00
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:
parent
2b43b65ed2
commit
28f90e8e8c
1 changed files with 6 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue