From owner-freebsd-current@FreeBSD.ORG Fri Dec 2 15:48:19 2005 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B955D16A420; Fri, 2 Dec 2005 15:48:19 +0000 (GMT) (envelope-from csaba@beastie.creo.hu) Received: from beastie.creo.hu (www.creo.hu [217.113.62.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id B4D8543D5D; Fri, 2 Dec 2005 15:48:18 +0000 (GMT) (envelope-from csaba@beastie.creo.hu) Received: from beastie.creo.hu (localhost [127.0.0.1]) by beastie.creo.hu (8.13.3/8.13.3) with ESMTP id jB2Fjqv7024807 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 2 Dec 2005 16:45:52 +0100 (CET) (envelope-from csaba@beastie.creo.hu) Received: (from csaba@localhost) by beastie.creo.hu (8.13.3/8.13.3/Submit) id jB2Fjqfg024806; Fri, 2 Dec 2005 16:45:52 +0100 (CET) (envelope-from csaba) Date: Fri, 2 Dec 2005 16:45:51 +0100 From: Csaba Henk To: Robert Watson Message-ID: <20051202154551.GP2911@beastie.creo.hu> References: <20051125214738.GL2911@beastie.creo.hu> <20051126025620.GA62284@xor.obsecurity.org> <20051126054748.GM2911@beastie.creo.hu> <20051126124248.L81764@fledge.watson.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051126124248.L81764@fledge.watson.org> User-Agent: Mutt/1.5.9i Cc: freebsd-current@freebsd.org, Kris Kennaway Subject: Re: double close strikes panic if md attaching a corrupt file 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: Fri, 02 Dec 2005 15:48:19 -0000 On Sat, Nov 26, 2005 at 12:43:36PM +0000, Robert Watson wrote: > > On Sat, 26 Nov 2005, Csaba Henk wrote: > > >On Fri, Nov 25, 2005 at 09:56:20PM -0500, Kris Kennaway wrote: > >>You probably should do so ;-) This isn't the easiest thing for someone > >>to test without such corrupted media. [...] > Well, a very easy way to test would be to add a local modification to UFS > to create a file flag that causes VOP_READ to return EIO :-). That way > you can easily mark files to return EIO. OK, I've been there, done that. Tried both with UFS + an SF_IOERROR flag and with a hacked reiserfs, where reading from regular files always fails. Original md code does choke on EIO returned. After I applied my first patch (md-doubleclose-1.diff), all worked fine, both in the case when reading returns error and when reading works normally. Csaba