Subject: Re: detaching SCSI devices
To: der Mouse <mouse@Rodents.Montreal.QC.CA>
From: Hubert Feyrer <feyrer@rfhs8012.fh-regensburg.de>
List: tech-kern
Date: 07/09/1999 01:27:06
On Thu, 8 Jul 1999, der Mouse wrote:
> "scsictl /dev/scsibus0 detach 2 0", eg.  I had to do it as a scsibus
> command rather than a device command because to do it as a device
> command you have to detach a device even though it's open, which (while
> probably possible - delay the detach until last close?) was more hair
> than I wanted to get into.  Initially I just did the detach anyway, but
> that crashed when closing the device (not surprising, since the
> scsipi_link had been freed).  Now, you can't detach a device that's
> open, and since that makes it useless as a device command, it's a
> bus-only thing.

Um, could we provide both? the device command for "safe" detaching, and
the bus command for forced/emergency operation?


 - Hubert

-- 
NetBSD - Better for your uptime than Viagra