Date: Thu, 19 Jul 2007 12:14:28 +0300 From: Andriy Gapon <avg@icyb.net.ua> To: Mark Linimon <linimon@lonesome.com> Cc: LoN_Kamikaze@gmx.de, freebsd-stable@freebsd.org, Momchil Ivanov <idiotbg@gmail.com>, josh@tcbug.org Subject: Re: removing external usb hdd without unmounting causes reboot? Message-ID: <469F2B74.8000003@icyb.net.ua> In-Reply-To: <1184793785.00776271.1184780402@10.7.7.3> References: <1184786589.00776227.1184773801@10.7.7.3> <1184790181.00776246.1184776801@10.7.7.3> <1184790188.00776259.1184778602@10.7.7.3> <1184793785.00776271.1184780402@10.7.7.3>
next in thread | previous in thread | raw e-mail | index | archive | help
on 18/07/2007 20:34 Mark Linimon said the following: > On Wed, Jul 18, 2007 at 10:05:59AM -0700, Jeremy Chadwick wrote: >> Bottom line here is that the kernel panics when removing a USB device >> that has filesystems mounted. > > s/USB // > >> I also have a hard time believing that the reason it hasn't been fixed >> is because "there isn't an easy fix". I'm under the impression it >> hasn't been fixed because either no one cares enough to fix it (using >> the workaround as a scapegoat excuse), or because the majority of people >> do not use USB-based storage devices. > > The reason is not the USB stack; the reason (IIRC) is that the FreeBSD > VM was written with the default assumption that Devices Never Go Away. > A large rewrite, I'm told, will be needed to fix this, and the code is > convoluted and tricky. > > No one finds the situation acceptable; introducing the "scapegoat" word > isn't going to win you any support. The problem is not a weekend's worth > of work to fix, nor does it have anything to do with avoidance by one > particular maintainer, which you apparently had encountered before. Well, here's my two kopiykas. Apparently there is somebody who tried to fix this problem, but for some reason (most probably language barrier) his attempt is largely unnoticed so far. Here is a link to a posting to freebsd-fs: http://lists.freebsd.org/pipermail/freebsd-fs/2007-June/003370.html Here's a discussion about this patch (in Russian): http://www.opennet.ru/openforum/vsluhforumID9/6467.html I have not tried this patch myself. I am not qualified enough to comment on its quality and the author admitted that this is more of a workaround or hack rather than perfect solution. Also, the patch seems to be msdosfs-centered. But there are some success reports on the forum mentioned above. So I thought that this is a good opportunity to draw more attention to the patch in hope that more people will try it and look at it and something good will result from it. -- Andriy Gapon
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?469F2B74.8000003>