Subject: kern/979: Another rogue SCSI disk
To: None <gnats-admin@NetBSD.ORG>
From: Geoff Adams <gadams@avernus.com>
List: netbsd-bugs
Date: 04/19/1995 18:20:04
>Number:         979
>Category:       kern
>Synopsis:       Patch: add another drive to scsiconf.c rogue list
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people (Kernel Bug People)
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Wed Apr 19 18:20:03 1995
>Originator:     Geoff Adams
>Organization:
Avernus
>Release:        NetBSD-current 18 Apr 1995
>Environment:
Sun 3/60
NetBSD-current
System: NetBSD spatula.avernus.com 1.0A NetBSD 1.0A (GENERIC) #0: Tue Apr 18 11:06:30 EDT 1995 gadams@spatula.avernus.com:/build/netbsd/sys/arch/sun3/compile/GENERIC sun3


>Description:
I have found another SCSI hard drive that exibits the lun counterfeature.  
Specifically, on bootup, I get eight pairs of lines like these:

si0 targ 0 lun 0: <QUANTUM, PD210S   SUN0207, 492S> SCSI2 0/direct fixed
sd0 at scsibus0: 199MB, 1156 cyl, 7 head, 50 sec, 512 bytes/sec
si0 targ 0 lun 1: <QUANTUM, PD210S   SUN0207, 492S> SCSI2 0/direct fixed
sd1 at scsibus0: 199MB, 1156 cyl, 7 head, 50 sec, 512 bytes/sec
...
...

>How-To-Repeat:
Boot the machine with a Quantum ProDrive 210S plugged into the SCSI bus.

>Fix:
The following patch to scsiconf.c accounts for the drive's irregularity:

*** /src/netbsd/sys/scsi/scsiconf.c.bak Tue Apr  4 06:06:23 1995
--- /src/netbsd/sys/scsi/scsiconf.c     Tue Apr 18 22:43:52 1995
***************
*** 304,309 ****
--- 304,311 ----
	"QUANTUM ", "LPS525S         ", "3110", SDEV_NOLUNS},
	{T_DIRECT, T_FIXED,
	"QUANTUM ", "PD1225S         ", "3110", SDEV_NOLUNS},
+	{T_DIRECT, T_FIXED,
+	"QUANTUM ", "PD210S   SUN0207", "492S", SDEV_NOLUNS},
  
	{T_SEQUENTIAL, T_REMOV,
	"EXABYTE ", "EXB-8200        ", "",     SDEV_NOLUNS},

>Audit-Trail:
>Unformatted: