From owner-freebsd-fs@FreeBSD.ORG Tue May 2 22:13:10 2006 Return-Path: X-Original-To: freebsd-fs@freebsd.org Delivered-To: freebsd-fs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1F2DF16A400 for ; Tue, 2 May 2006 22:13:10 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8B24B43D46 for ; Tue, 2 May 2006 22:13:09 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (elvis.mu.org [192.203.228.196]) by elvis.mu.org (Postfix) with ESMTP id 6D38D1A4DF6; Tue, 2 May 2006 15:13:09 -0700 (PDT) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 6AC05515A6; Tue, 2 May 2006 18:13:07 -0400 (EDT) Date: Tue, 2 May 2006 18:13:07 -0400 From: Kris Kennaway To: Pavel Merdine Message-ID: <20060502221306.GD95348@xor.obsecurity.org> References: <20060502193900.GA94069@peter.osted.lan> <1541458526.20060503003229@merdin.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="rz+pwK2yUstbofK6" Content-Disposition: inline In-Reply-To: <1541458526.20060503003229@merdin.com> User-Agent: Mutt/1.4.2.1i Cc: Peter Holm Subject: Re: Stress testing the UFS2 filesystem X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 May 2006 22:13:10 -0000 --rz+pwK2yUstbofK6 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, May 03, 2006 at 12:32:29AM +0400, Pavel Merdine wrote: > Hello , >=20 > Thank you for raising this problem again. I already tried to do that > in that list, but received an answer that kernel is intended to do > that. For example, you have a faulty disk. And you have a faulty > sector which happened to occur on the directory place. So each time > kernel reads this sector it panics. So it's initially hard to even > understand what happens. And also it leads to corruption and lost > files on other file system (each time). Imagine if you have 15 disks. > In this case you have many files lost just because of a small (and not > significant) fault. It's just a nonsense. > Personally, I just replaced bad_dir with error return. > By the way, there was some bug in fs in kernel that could lead to > panic even on clean filesystem (bad_dir as far as I remember). It is > very rare and it was fixed on DragonFly. As far as I remember a fix > for this was also commited to current recently. >=20 > I think that Linux is usually much smarter on this. By default it > remounts a file system as read-only in case it detects a filesystem > corruption. I would be very happy if FreeBSD could do the same, > because fs panics really hurt when you have many systems with disks. >=20 > Of course I think we could do patches to overcome corrupting panics, > but the core FreeBSD team would not accept this, as they are happy > with panics and corruptions they make to other filesystems. Of course not, don't make silly accusations :-) The problem is much more difficult to solve than "making the panic an error return". Kris --rz+pwK2yUstbofK6 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (FreeBSD) iD8DBQFEV9lyWry0BWjoQKURAmKvAKCUqutakqkiSFOI9cE6smyEhLKg1QCggx0L sR1ctm8qukBIbheUzHr4Bac= =Fwc/ -----END PGP SIGNATURE----- --rz+pwK2yUstbofK6--