NetBSD Problem Report #8226

Received: (qmail 16120 invoked from network); 18 Aug 1999 15:29:20 -0000
Message-Id: <199908181529.RAA05574@opus.augustsson.net>
Date: Wed, 18 Aug 1999 17:29:16 +0200 (CEST)
From: Lennart Augustsson <augustss@augustsson.net>
Reply-To: augustss@augustsson.net
To: gnats-bugs@gnats.netbsd.org
Subject: No detach in scsipi layer
X-Send-Pr-Version: 3.95

>Number:         8226
>Category:       kern
>Synopsis:       No detach in scsipi layer
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    kern-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Aug 18 08:35:01 +0000 1999
>Closed-Date:    Sun Sep 12 17:43:28 +0000 1999
>Last-Modified:  Sun Sep 12 17:44:02 +0000 1999
>Originator:     Lennart Augustsson
>Release:        NetBSD-current 1999-08-18
>Organization:
>Environment:
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


>Description:
	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.
>How-To-Repeat:
	See above.
>Fix:
	Well, as a first step the attach routines should be added.
	I'm not sure what should be done if a disappearing disk is
	mounted.
>Release-Note:
>Audit-Trail:

From: Bill Sommerfeld <sommerfeld@orchard.arlington.ma.us>
To: augustss@augustsson.net
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: kern/8226: No detach in scsipi layer 
Date: Wed, 18 Aug 1999 11:39:11 -0400

 > 	Well, as a first step the attach routines should be added.
 > 	I'm not sure what should be done if a disappearing disk is
 > 	mounted.

 Forcing the equivalent of a umount -f comes to mind..



From: Lennart Augustsson <lennart@augustsson.net>
To: Bill Sommerfeld <sommerfeld@orchard.arlington.ma.us>
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: kern/8226: No detach in scsipi layer
Date: Wed, 18 Aug 1999 17:46:01 +0200

 Bill Sommerfeld wrote:

 > >       Well, as a first step the attach routines should be added.
 > >       I'm not sure what should be done if a disappearing disk is
 > >       mounted.
 >
 > Forcing the equivalent of a umount -f comes to mind..

 Yes, but maybe the disk is just temporarily gone.  Maybe the cat
 pulled the plug and I'll plug it back in a few seconds later.
 (This could work for USB, because all mass storage devices
 are required to have a serial number so you can actually see
 that the same device is coming back.)


 --

         -- Lennart



State-Changed-From-To: open->closed 
State-Changed-By: augustss 
State-Changed-When: Sun Sep 12 10:43:28 PDT 1999 
State-Changed-Why:  
Fixed by Jason Thorpe. 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.