From owner-freebsd-current@FreeBSD.ORG Thu Aug 21 10:02:19 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 41DA41065676 for ; Thu, 21 Aug 2008 10:02:19 +0000 (UTC) (envelope-from shuvaev@physik.uni-wuerzburg.de) Received: from mailrelay.rz.uni-wuerzburg.de (wrzx28.rz.uni-wuerzburg.de [132.187.3.28]) by mx1.freebsd.org (Postfix) with ESMTP id BE6E08FC1E for ; Thu, 21 Aug 2008 10:02:18 +0000 (UTC) (envelope-from shuvaev@physik.uni-wuerzburg.de) Received: from virusscan.mail (localhost [127.0.0.1]) by mailrelay.mail (Postfix) with ESMTP id 7BC70198E69; Thu, 21 Aug 2008 12:02:16 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by virusscan.mail (Postfix) with ESMTP id 6BAEE198E5F; Thu, 21 Aug 2008 12:02:16 +0200 (CEST) Received: from mail.physik.uni-wuerzburg.de (wthp192.physik.uni-wuerzburg.de [132.187.40.192]) by mailmaster.uni-wuerzburg.de (Postfix) with ESMTP id 55726198E61; Thu, 21 Aug 2008 12:02:16 +0200 (CEST) Received: from wep4017.physik.uni-wuerzburg.de ([132.187.37.17]) by mail.physik.uni-wuerzburg.de (Lotus Domino Release 8.0.1HF110) with ESMTP id 2008082112021589-50294 ; Thu, 21 Aug 2008 12:02:15 +0200 Received: by wep4017.physik.uni-wuerzburg.de (sSMTP sendmail emulation); Thu, 21 Aug 2008 12:02:15 +0200 From: "Alexey Shuvaev" Date: Thu, 21 Aug 2008 12:02:15 +0200 To: Fabian Keil Message-ID: <20080821100215.GA24076@wep4017.physik.uni-wuerzburg.de> References: <200808192244.24034.hselasky@c2i.net> <20080819211814.6CD685B4D@mail.bitblocks.com> <20080819.160510.104119134.imp@bsdimp.com> <20080820234335.7c82b26a@fabiankeil.de> MIME-Version: 1.0 In-Reply-To: <20080820234335.7c82b26a@fabiankeil.de> Organization: Universitaet Wuerzburg User-Agent: Mutt/1.5.18 (2008-05-17) X-MIMETrack: Itemize by SMTP Server on domino1/uni-wuerzburg(Release 8.0.1HF110 | April 11, 2008) at 08/21/2008 12:02:16 PM, Serialize by Router on domino1/uni-wuerzburg(Release 8.0.1HF110 | April 11, 2008) at 08/21/2008 12:02:16 PM, Serialize complete at 08/21/2008 12:02:16 PM Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Virus-Scanned: by amavisd-new at uni-wuerzburg.de Cc: freebsd-current@freebsd.org Subject: Re: usb/46176: Let's save the horse! [was: HEADSUP new usb code coming in.] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Aug 2008 10:02:19 -0000 On Wed, Aug 20, 2008 at 11:43:35PM +0200, Fabian Keil wrote: > Warner Losh wrote: > > > From: Bakul Shah > > Subject: Re: HEADSUP new usb code coming in. > > Date: Tue, 19 Aug 2008 14:18:13 -0700 > > > > > > > > Accidentally unplugging a mounted USB disk (without > > > unmounting it) resulted in a hang or a crash. Is this fixed? > > > > That's fixed in -current right now with the old stack. It isn't a usb > > issue at all, but a buffer cache issue. > > I can't confirm this for either msdosfs or geli (with ZFS). > > In case of msdosfs the situation has been vastly improved > and the panic seems to be no longer guaranteed, but there's > still a fair chance it'll happen eventually. > It was discussed now and then on freebsd-usb mailing list. Have a look at http://www.gulbra.net/freebsd-usb/ As for the non-msdosfs formatted media, I am quite sure it is a really bad idea to unplug media before unmounting it (there is actually no difference between "removable" and "stationary" drives). Just my 0.02$, Alexey.