Re: USB stick access freezing up system?
- From: jpd <read_the_sig@xxxxxxxxxxxxxxxxxxxxxx>
- Date: 5 Dec 2007 14:50:02 GMT
Begin <fj6bul$dj$2@xxxxxxxxxxxxxxxxxxxxxxx>
On 5 Dec 2007 14:17:57 GMT, Richard Tobin <richard@xxxxxxxxxxxxxxx> wrote:
In article <slrnfld340.lee.read_the_sig@xxxxxxxxxxxxxx>,
jpd <read_the_sig@xxxxxxxxxxxxxxxxxxxxxx> wrote:
I'm also confused why FreeBSD panics when the stick is removed. I
would expect the application to fail, but the stick is just a mount in
the app's directory tree, nothing essential...
You know that but your system does not know that. FreeBSD does not make
a distinction between disks and flash, or cds, or whatever. A mount is a
mount. If the reader could signal the event you could set it up so that
it'll force-unmount the disk, but you risk data loss and even filesystem
corruption that way.
How can it corrupt a filesystem on a device that's been removed? Or
did you mean corrupt some other filesystem (surely not).
Removing a device will probably result in data loss and perhaps
corruption of its filesystem, but panic()ing rather than forced
unmounting does nothing not fix that.
I was talking about losing partial writes and metadata problems. Of
course, the medium itself won't be available for further scribbling, but
what if your medium happens to need signals from the hardware to finish
up a session? This is not unheard of. Drives might need parking[1], CDs
might need their session closed[2], etc.
As to the rest of the storage, probably not directly, but ``surely not''
is an assumption that you can't prove to be true for all cases. I could
conceive of side effects, programs concluding to go on and scribble
elsewhere, causing inconsistencies and whatnot. Far-fetched but again
not inconceivable. Reparability of that I won't speculate on.
So I guess you must just mean that it would be bad to get in the habit
of unplugging devices because you can get away with it, but I don't
see panic()ing as an appropriate way to discourage that.
You'd be guessing wrong. As currently setup, removing storage without
unmounting is a very clear no-no, but it's not done just to discourage
people from doing it.
[1] I have transported an MFM disk that had not been parked with the
proper utility before powering down. Damage had resulted.
This was on an old XT running DOS.
[2] CD burners usually lock their tray while busy, but that is besides
the point. They need that peace and quiet to do their thing.
--
j p d (at) d s b (dot) t u d e l f t (dot) n l .
This message was originally posted on Usenet in plain text.
Any other representation, additions, or changes do not have my
consent and may be a violation of international copyright law.
.
- Follow-Ups:
- Re: USB stick access freezing up system?
- From: Richard Tobin
- Re: USB stick access freezing up system?
- References:
- USB stick access freezing up system?
- From: googlegroups
- Re: USB stick access freezing up system?
- From: Torfinn Ingolfsen
- Re: USB stick access freezing up system?
- From: googlegroups
- Re: USB stick access freezing up system?
- From: jpd
- Re: USB stick access freezing up system?
- From: Richard Tobin
- USB stick access freezing up system?
- Prev by Date: Re: USB stick access freezing up system?
- Next by Date: Re: USB stick access freezing up system?
- Previous by thread: Re: USB stick access freezing up system?
- Next by thread: Re: USB stick access freezing up system?
- Index(es):
Relevant Pages
|