Subject: kern/1550: Another wacky tape device for scsiconf.c
To: None <gnats-bugs@gnats.netbsd.org>
From: Rob Healey <rhealey@kas.helios.mn.org>
List: netbsd-bugs
Date: 09/30/1995 11:43:23
>Number:         1550
>Category:       kern
>Synopsis:       Caliper SCSI QIC-150 tape drive needs NOLUNS flag
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people (Kernel Bug People)
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sat Sep 30 13:05:02 1995
>Last-Modified:
>Originator:     Rob Healey
>Organization:
	Home system in Minnesota near the polar circle...
>Release:        September 30th sup of NetBSD-current
>Environment:
		Any NetBSD the tape drive is attached to.
System: NetBSD kas.helios.mn.org 1.0A NetBSD 1.0A (KAS) #0: Thu Sep 21 11:48:13 CDT 1995 rhealey@kas.helios.mn.org:/usr/src/bsd/src/sys/arch/amiga/compile/KAS amiga
Architecture: amiga

>Description:
	Caliper tape drive is too stupid to only respond to LUN 0 so the
	NOLUNS flag needs to be set.
>How-To-Repeat:
	Plug in a Caliper SCSI tape drive and watch it squirm
>Fix:
	Apply the following diff to src/sys/scsi/scsiconf.c

*** scsiconf.c.dist	Sat Sep 30 11:35:05 1995
--- scsiconf.c	Sat Sep 30 11:35:09 1995
***************
*** 329,334 ****
--- 329,336 ----
  	{T_SEQUENTIAL, T_REMOV,
  	 "        ", "                ", "    ", SDEV_NOLUNS},
  	{T_SEQUENTIAL, T_REMOV,
+ 	 "CALIPER ", "CP150           ", "",     SDEV_NOLUNS},
+ 	{T_SEQUENTIAL, T_REMOV,
  	 "EXABYTE ", "EXB-8200        ", "",     SDEV_NOLUNS},
  	{T_SEQUENTIAL, T_REMOV,
  	 "SONY    ", "SDT-2000        ", "2.09", SDEV_NOLUNS},
>Audit-Trail:
>Unformatted: