From owner-freebsd-fs@FreeBSD.ORG Wed May 3 00:21:45 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 AD25A16A401 for ; Wed, 3 May 2006 00:21:45 +0000 (UTC) (envelope-from scottl@samsco.org) Received: from pooker.samsco.org (pooker.samsco.org [168.103.85.57]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2502243D45 for ; Wed, 3 May 2006 00:21:42 +0000 (GMT) (envelope-from scottl@samsco.org) Received: from [192.168.254.11] (junior.samsco.home [192.168.254.11]) (authenticated bits=0) by pooker.samsco.org (8.13.4/8.13.4) with ESMTP id k430Lfmw042721; Tue, 2 May 2006 18:21:41 -0600 (MDT) (envelope-from scottl@samsco.org) Message-ID: <4457F7A0.9050502@samsco.org> Date: Tue, 02 May 2006 18:21:52 -0600 From: Scott Long User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.12) Gecko/20051230 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Pavel Merdine References: <20060502193900.GA94069@peter.osted.lan> <1541458526.20060503003229@merdin.com> In-Reply-To: <1541458526.20060503003229@merdin.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.4 required=3.8 tests=ALL_TRUSTED autolearn=failed version=3.1.1 X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on pooker.samsco.org 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: Wed, 03 May 2006 00:21:45 -0000 Pavel Merdine wrote: > Hello , > > 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. > > 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. > > 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. You were so close to having an interesting email, and then you decided to expose yourself for the troll that you are. Thanks for the input, it will be ignored appropriately in the future. Scott