diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2004-01-14 02:00:42 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2004-01-14 02:00:42 +0000 |
commit | f7cc5b8655c9095d9f23aa77c1baec172c8b4598 (patch) | |
tree | 98e1c8baa14b2f29b38626b97795d69e7a91ec61 /sys/dev/atapiscsi | |
parent | 7d99d1eb35ee8d037e426b4bb8e04e943a7c16da (diff) |
Nuke SDEV_NOLUNS, SDEV_FORCELUNS, and PQUIRK_FORCELUNS quirks. Also
moreluns field in scsi_link structure. Instead, treat an INQUIRY
result that duplicates the INQUIRY result of LUN 0 as proof the LUN
does not exist. Compensate for lack of SDEV_NOLUNS where necessary by
setting sc_link->luns to 1, which has the same effect. From Marco
Peereboom.
Don't issue Test Unit Ready command before INQUIRY command - not
necessary and potentially harmful to devices with ADEV_NOTUR quirk
since quirks have not been set yet. From mycroft@NetBSD
ok deraadt@, mvme* changes by miod@.
Diffstat (limited to 'sys/dev/atapiscsi')
-rw-r--r-- | sys/dev/atapiscsi/atapiscsi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/atapiscsi/atapiscsi.c b/sys/dev/atapiscsi/atapiscsi.c index c192fc709ed..4eb6aec0e29 100644 --- a/sys/dev/atapiscsi/atapiscsi.c +++ b/sys/dev/atapiscsi/atapiscsi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: atapiscsi.c,v 1.68 2004/01/09 21:32:23 brad Exp $ */ +/* $OpenBSD: atapiscsi.c,v 1.69 2004/01/14 02:00:41 krw Exp $ */ /* * This code is derived from code with the copyright below. @@ -248,9 +248,9 @@ atapiscsi_attach(parent, self, aux) as->sc_adapterlink.adapter_buswidth = 2; as->sc_adapterlink.adapter = &atapiscsi_switch; as->sc_adapterlink.device = &atapiscsi_dev; + as->sc_adapterlink.luns = 1; as->sc_adapterlink.openings = 1; as->sc_adapterlink.flags = SDEV_ATAPI; - as->sc_adapterlink.quirks = SDEV_NOLUNS; strncpy(drvp->drive_name, as->sc_dev.dv_xname, sizeof(drvp->drive_name) - 1); |