Skip to content

Commit

Permalink
hyperv: let there be IDE disks
Browse files Browse the repository at this point in the history
  • Loading branch information
fichtner committed Feb 2, 2017
1 parent 48f38da commit bdf347e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit bdf347e

Please sign in to comment.