Date: Wed, 31 Aug 2005 07:49:27 -0500 From: Eric Anderson <anderson@centtech.com> To: "Daniel O'Connor" <doconnor@gsoft.com.au> Cc: freebsd-current@freebsd.org Subject: Re: panic after removing usb flash drive Message-ID: <4315A757.5020108@centtech.com> In-Reply-To: <200508311306.46876.doconnor@gsoft.com.au> References: <1125452228.740.3.camel@arbitor.homelinux.com> <47d0403c05083020044f6ac0be@mail.gmail.com> <200508311306.46876.doconnor@gsoft.com.au>
next in thread | previous in thread | raw e-mail | index | archive | help
Daniel O'Connor wrote: > On Wednesday 31 August 2005 12:34, Ben Kaduk wrote: > >>Of course, if you did unmount the filesystem before pulling the drive, then >>this shoule be looked into. > > > IMHO it would be really nice if you could tell the kernel that it should just > ditch the data (and whine to the log file) instead of panicing. > > For your "main" file systems the panic approach is sensible, but for removable > things it's more likely to cause data loss I think (because the panic could > eat data on your other drives). > > Although last time I saw this discussed I came away with the impression that > it wasn't possible for the kernel to do this..? (without substantial work > anyway) > Why not just use the automounter to mount/umount this for you? This probably won't get around umounting while in use, but you might be able to tell amd to use a umount -f on it. Eric -- ------------------------------------------------------------------------ Eric Anderson Sr. Systems Administrator Centaur Technology Anything that works is better than anything that doesn't. ------------------------------------------------------------------------
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4315A757.5020108>