From: Matthew Wilcox Subject: Re: reacting to fs errors Date: Sun, 4 May 2003 15:58:31 +0100 Sender: linux-fsdevel-owner@vger.kernel.org Message-ID: <20030504145831.GK31610@parcelfarce.linux.theplanet.co.uk> References: <200305041444.KAA15129@finch.research.att.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: linux-fsdevel@vger.kernel.org Return-path: Received: from parcelfarce.linux.theplanet.co.uk ([195.92.249.252]:11501 "EHLO www.linux.org.uk") by vger.kernel.org with ESMTP id S263619AbTEDOqD (ORCPT ); Sun, 4 May 2003 10:46:03 -0400 To: mp@research.att.com Content-Disposition: inline In-Reply-To: <200305041444.KAA15129@finch.research.att.com> List-Id: linux-fsdevel.vger.kernel.org On Sun, May 04, 2003 at 10:44:33AM -0400, mp@research.att.com wrote: > "Ththththaats all folks. Too dangerous to continue." But we would've > preferred the system have halted (or stopped using that filesystem) > immediately upon detection of the first serious error so that our apps > did not continue to use bad data. I was wondering if you could make > this an option. Solaris has a mount option, onerror=panic|lock|umount. > (http://www.freebsd.org/cgi/man.cgi?query=mount_ufs&manpath=SunOS+5.9) We already have that for both ext2 & ext3: else if (!strcmp (this_char, "errors")) { if (!strcmp (value, "continue")) { else if (!strcmp (value, "remount-ro")) { else if (!strcmp (value, "panic")) { Debian sets up root with errors=remount-ro by default. -- "It's not Hollywood. War is real, war is primarily not about defeat or victory, it is about death. I've seen thousands and thousands of dead bodies. Do you think I want to have an academic debate on this subject?" -- Robert Fisk