Date: Tue, 13 Mar 2001 01:17:15 -0700 From: Warner Losh <imp@harmony.village.org> To: Dima Dorfman <dima@unixfreak.org> Cc: hackers@FreeBSD.org Subject: Re: Patch to fix panic when detaching a mounted md device Message-ID: <200103130817.f2D8HF900574@harmony.village.org> In-Reply-To: Your message of "Mon, 12 Mar 2001 23:17:44 PST." <20010313071744.C988C3E09@bazooka.unixfreak.org> References: <20010313071744.C988C3E09@bazooka.unixfreak.org>
next in thread | previous in thread | raw e-mail | index | archive | help
In message <20010313071744.C988C3E09@bazooka.unixfreak.org> Dima Dorfman writes: : Right now, if you try to detach an md device that's currently mounted, : you will get a panic (maybe not immedietely, but it will come, esp. if : you ever try to use that mountpoint again). I'm pretty sure this is a : known problem, with the solution--or workaround--being, "then don't do : that." The problem is, someone will invariably do it. The fix is to : make md complain if you try to detach a device that's currently : opened. Below is a patch that implements this by keeping track of the : number of times a device has been opened. I'd like to see the kernel deal with this in a more graceful way. The kernel will crash if you have a ata flash mounted and you eject the card... Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200103130817.f2D8HF900574>