Subject: re: Pluged : USBd for NetBSD ?
To: matthew green <mrg@eterna.com.au>
From: Gary Thorpe <gathorpe79@yahoo.com>
List: tech-kern
Date: 01/22/2005 17:21:18
--- matthew green <mrg@eterna.com.au> wrote:
>
> What is the system supposed to do if you remove the storage
> without
> unmounting it? Just discard all buffered data (including metadata)
> and
> return an error for future requests? I agree that it should panic
> in
> this case, but really the user is asking for trouble if they do
> this.
>
>
> why should the kernel panic? if the user does something stupid and
> they lose some data, that's their fault, but there's no reason to go
> panicking on them. that's lazy.
Sorry, I meant to say "should NOT panic". My point was that even with
usbd you cannot expect to unplug things like disks without letting the
system know about it before hand. Since you have to do something before
hand to keep your data, usbd wouldn't help for unplugging devices, just
automatic configuration when you plug them back in (would help with
pcmcia or maybe even hot-plug PCI).
>
> the older panic was *not* on purpose. it simply crashed ...
>
>
> note that sometimes you don't even have to "mean" to do this. the
> first time it happened to me (including the crash) was when i left
> my digicam plugged in and mounted on netbsd...and then the camera
> turned itself off, or ran out of battery... i was very non-plussed
> when this crash caused me to lose work ...
>
>
> .mrg.
>
______________________________________________________________________
Post your free ad now! http://personals.yahoo.ca