From owner-freebsd-current@FreeBSD.ORG Thu Aug 21 16:45:12 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 37B991065671 for ; Thu, 21 Aug 2008 16:45:12 +0000 (UTC) (envelope-from freebsd-listen@fabiankeil.de) Received: from smtprelay07.ispgateway.de (smtprelay07.ispgateway.de [80.67.29.7]) by mx1.freebsd.org (Postfix) with ESMTP id B30658FC27 for ; Thu, 21 Aug 2008 16:45:11 +0000 (UTC) (envelope-from freebsd-listen@fabiankeil.de) Received: from [88.153.0.16] (helo=localhost) by smtprelay07.ispgateway.de with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.68) (envelope-from ) id 1KWDHZ-0002lB-PY for freebsd-current@freebsd.org; Thu, 21 Aug 2008 18:45:09 +0200 Date: Thu, 21 Aug 2008 18:45:04 +0200 From: Fabian Keil To: freebsd-current@freebsd.org Message-ID: <20080821184504.4c0bf845@fabiankeil.de> In-Reply-To: <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> <20080821100215.GA24076@wep4017.physik.uni-wuerzburg.de> X-Mailer: Claws Mail 3.5.0 (GTK+ 2.12.11; i386-portbld-freebsd8.0) X-PGP-KEY-URL: http://www.fabiankeil.de/gpg-keys/freebsd-listen-2008-08-18.asc Mime-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/vE3zfQE..MkVtQuVaoP0Yn/"; protocol="application/pgp-signature"; micalg=PGP-SHA1 X-Df-Sender: 775067 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 16:45:12 -0000 --Sig_/vE3zfQE..MkVtQuVaoP0Yn/ Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable "Alexey Shuvaev" wrote: > On Wed, Aug 20, 2008 at 11:43:35PM +0200, Fabian Keil wrote: > > Warner Losh wrote: > >=20 > > > From: Bakul Shah > > > > Accidentally unplugging a mounted USB disk (without > > > > unmounting it) resulted in a hang or a crash. Is this fixed? > > >=20 > > > That's fixed in -current right now with the old stack. It isn't a usb > > > issue at all, but a buffer cache issue. > >=20 > > I can't confirm this for either msdosfs or geli (with ZFS). > >=20 > > 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. > >=20 > It was discussed now and then on freebsd-usb mailing list. I'm not subscribed to freebsd-usb so I'm not sure what was or wasn't discussed there, but I also don't see how it's relevant here. All I'm saying is that unplugging a mounted USB disk is very likely to panic my system running FreeBSD 8.0-CURRENT #2: Fri Aug 15 23:35:09 CEST 2008 eventually and thus I wouldn't call the problem fixed just yet. > Have a look at http://www.gulbra.net/freebsd-usb/ It seems to be mainly about patches against FreeBSD 7.0-BETA1.5, I'm talking about CURRENT without additional patches. > 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). That's besides the point. Fabian --Sig_/vE3zfQE..MkVtQuVaoP0Yn/ Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEARECAAYFAkitm5EACgkQBYqIVf93VJ30owCgjHMoicGUZK+YVuVA5Yr8fcc6 q7EAni3n1d/hVDjTyp8J2lSb27nzbFbc =aEQe -----END PGP SIGNATURE----- --Sig_/vE3zfQE..MkVtQuVaoP0Yn/--