diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2020-09-03 12:41:30 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2020-09-03 12:41:30 +0000 |
commit | c836170e16e763e4963317f829c4dadf9a438e99 (patch) | |
tree | f3d0fe2e70a9d8903c42bb1e3218fb461e802329 /sys/dev/pv | |
parent | 55e492d4547f22b2e0081d07091a376aeaad9ee3 (diff) |
Replace '.response_format = 2' with '.response_format = SID_SCSI2_RESPONSE'.
Diffstat (limited to 'sys/dev/pv')
-rw-r--r-- | sys/dev/pv/hvs.c | 2 | ||||
-rw-r--r-- | sys/dev/pv/vioblk.c | 4 | ||||
-rw-r--r-- | sys/dev/pv/xbf.c | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/pv/hvs.c b/sys/dev/pv/hvs.c index a6d1c5864d9..271d7270455 100644 --- a/sys/dev/pv/hvs.c +++ b/sys/dev/pv/hvs.c @@ -600,7 +600,7 @@ fixup_inquiry(struct scsi_xfer *xs, struct hvs_srb *srb) !is_inquiry_valid(inq) && datalen >= 4 && (inq->version == 0 || inq->response_format == 0)) { inq->version = SCSI_REV_SPC3; - inq->response_format = 2; + inq->response_format = SID_SCSI2_RESPONSE; } else if (datalen >= SID_INQUIRY_HDR + SID_SCSI2_ALEN) { /* * Upgrade SPC2 to SPC3 if host is Win8 or WS2012 R2 diff --git a/sys/dev/pv/vioblk.c b/sys/dev/pv/vioblk.c index f399474f05c..dc68145ea50 100644 --- a/sys/dev/pv/vioblk.c +++ b/sys/dev/pv/vioblk.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vioblk.c,v 1.28 2020/09/02 22:00:26 krw Exp $ */ +/* $OpenBSD: vioblk.c,v 1.29 2020/09/03 12:41:29 krw Exp $ */ /* * Copyright (c) 2012 Stefan Fritsch. @@ -574,7 +574,7 @@ vioblk_scsi_inq(struct scsi_xfer *xs) inqd.device = T_DIRECT; inqd.version = SCSI_REV_SPC3; - inqd.response_format = 2; + inqd.response_format = SID_SCSI2_RESPONSE; inqd.additional_length = 32; inqd.flags |= SID_CmdQue; bcopy("VirtIO ", inqd.vendor, sizeof(inqd.vendor)); diff --git a/sys/dev/pv/xbf.c b/sys/dev/pv/xbf.c index 87d49cfe962..b2f5a760b55 100644 --- a/sys/dev/pv/xbf.c +++ b/sys/dev/pv/xbf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: xbf.c,v 1.46 2020/09/02 21:16:29 krw Exp $ */ +/* $OpenBSD: xbf.c,v 1.47 2020/09/03 12:41:29 krw Exp $ */ /* * Copyright (c) 2016, 2017 Mike Belopuhov @@ -836,7 +836,7 @@ xbf_scsi_inquiry(struct scsi_xfer *xs) } inq.version = SCSI_REV_SPC3; - inq.response_format = 2; + inq.response_format = SID_SCSI2_RESPONSE; inq.additional_length = 32; inq.flags |= SID_CmdQue; bcopy("Xen ", inq.vendor, sizeof(inq.vendor)); |