Subject: kern/8226: No detach in scsipi layer
To: None <>
From: Lennart Augustsson <>
List: netbsd-bugs
Date: 08/18/1999 08:43:48
>Number:         8226
>Category:       kern
>Synopsis:       No detach in scsipi layer
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    kern-bug-people (Kernel Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Aug 18 08:35:01 1999
>Originator:     Lennart Augustsson
>Release:        NetBSD-current 1999-08-18
System: NetBSD opus 1.4J NetBSD 1.4J (OPUS) #7: Wed Aug 18 00:14:13 CEST 1999 augustss@opus:/extra/NetBSD/src/sys/arch/i386/compile/OPUS i386

	The SCSI and ATAPI drivers do not have detach routines
	(i.e. in the cfattach struct).
	This means that if a detachable device, e.g. a PCMCIA SCSI
	card or USB disk, is unplugged the kernel will panic.
	This is not nice.
	See above.
	Well, as a first step the attach routines should be added.
	I'm not sure what should be done if a disappearing disk is