diff options
author | 2006-07-22 18:03:07 +0000 | |
---|---|---|
committer | 2006-07-22 18:03:07 +0000 | |
commit | e906bcd8851a0035ae71119bf28bb59d39becc2a (patch) | |
tree | 3e0e41c894b68e9625f2e5e8cea6c0747f21cbff | |
parent | corrections from alexey e. suslikov; (diff) | |
download | wireguard-openbsd-e906bcd8851a0035ae71119bf28bb59d39becc2a.tar.xz wireguard-openbsd-e906bcd8851a0035ae71119bf28bb59d39becc2a.zip |
Nuke SCSIFORCELUN* and friends. These were introduced as a safety
valve in case our duplicate LUN checks had to be circumvented. Since
no one has found a need for them, and they were just one more place
trying to shift a bit 255 places to the left could be induced, remove
them.
"i don't think any options like that are worthwhile" deraadt@
-rw-r--r-- | share/man/man4/options.4 | 20 | ||||
-rw-r--r-- | sys/scsi/scsiconf.c | 8 | ||||
-rw-r--r-- | sys/scsi/scsiconf.h | 17 |
3 files changed, 3 insertions, 42 deletions
diff --git a/share/man/man4/options.4 b/share/man/man4/options.4 index ce8aa9f83a7..9c14f5b2e77 100644 --- a/share/man/man4/options.4 +++ b/share/man/man4/options.4 @@ -1,4 +1,4 @@ -.\" $OpenBSD: options.4,v 1.176 2006/04/14 21:57:40 weingart Exp $ +.\" $OpenBSD: options.4,v 1.177 2006/07/22 18:03:07 krw Exp $ .\" $NetBSD: options.4,v 1.21 1997/06/25 03:13:00 thorpej Exp $ .\" .\" Copyright (c) 1998 Theo de Raadt @@ -895,24 +895,6 @@ Each bit enables debugging info for the corresponding target. .It Cd option SCSIDEBUG_LUNS=value Define which SCSI luns will print debug info. Each bit enables debugging info for the corresponding lun. -.It Cd option SCSIFORCELUN_BUSES=value -Define which SCSI buses will do full lun scanning. -.Em SCSIFORCELUN_TARGETS -must also be set to a non-zero value for this option to take effect. -Each bit enables a full lun scan for the corresponding SCSI bus. -The lun scan normally terminates if identical INQUIRY data is seen for -lun 0 and another lun, as this usually means the target cannot -distinguish between different luns. -But some devices (e.g. some external RAID devices) can legitimately -supply identical INQUIRY data for several luns. -.It Cd option SCSIFORCELUN_TARGETS=value -Define which SCSI targets will do full lun scanning. -.Em SCSIFORCELUN_BUSES -must also be set to a non-zero value for this option to have any -effect. -Each bit enables a full lun scan for the corresponding target on the -buses specified by -.Em SCSIFORCELUN_BUSES . .El .Ss System V IPC Options .Bl -ohang diff --git a/sys/scsi/scsiconf.c b/sys/scsi/scsiconf.c index f2e60553df1..dfcec389ef8 100644 --- a/sys/scsi/scsiconf.c +++ b/sys/scsi/scsiconf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: scsiconf.c,v 1.107 2006/07/14 01:27:40 krw Exp $ */ +/* $OpenBSD: scsiconf.c,v 1.108 2006/07/22 18:03:07 krw Exp $ */ /* $NetBSD: scsiconf.c,v 1.57 1996/05/02 01:09:01 neil Exp $ */ /* @@ -90,9 +90,6 @@ int scsidebug_targets = SCSIDEBUG_TARGETS; int scsidebug_luns = SCSIDEBUG_LUNS; int scsidebug_level = SCSIDEBUG_LEVEL; -int scsiforcelun_buses = SCSIFORCELUN_BUSES; -int scsiforcelun_targets = SCSIFORCELUN_TARGETS; - int scsi_autoconf = SCSI_AUTOCONF; int scsibusprint(void *, const char *); @@ -608,9 +605,6 @@ scsi_probedev(struct scsibus_softc *scsi, int target, int lun) if (lun == 0 || scsi->sc_link[target][0] == NULL) ; - else if (((1 << sc_link->scsibus) & scsiforcelun_buses) && - ((1 << target) & scsiforcelun_targets)) - ; else if (sc_link->flags & SDEV_UMASS) ; else if (memcmp(&inqbuf, &scsi->sc_link[target][0]->inqdata, diff --git a/sys/scsi/scsiconf.h b/sys/scsi/scsiconf.h index 270cd900ea9..57a320107d0 100644 --- a/sys/scsi/scsiconf.h +++ b/sys/scsi/scsiconf.h @@ -1,4 +1,4 @@ -/* $OpenBSD: scsiconf.h,v 1.69 2006/07/13 11:46:16 krw Exp $ */ +/* $OpenBSD: scsiconf.h,v 1.70 2006/07/22 18:03:07 krw Exp $ */ /* $NetBSD: scsiconf.h,v 1.35 1997/04/02 02:29:38 mycroft Exp $ */ /* @@ -96,21 +96,6 @@ struct scsi_link; extern int scsi_autoconf; /* - * Specify which buses and targets must scan all LUNs, even when IDENTIFY does - * not seem to be working. Some devices (e.g. some external RAID devices) may - * seem to have non-functional IDENTIFY because they return identical INQUIRY - * data for all LUNs. - */ -#ifndef SCSIFORCELUN_BUSES -#define SCSIFORCELUN_BUSES 0 -#endif -#ifndef SCSIFORCELUN_TARGETS -#define SCSIFORCELUN_TARGETS 0 -#endif - -extern int scsiforcelun_buses, scsiforcelun_targets; - -/* * These entrypoints are called by the high-end drivers to get services from * whatever low-end drivers they are attached to. Each adapter type has one * of these statically allocated. |