From owner-freebsd-current Wed Mar 11 17:04:27 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id RAA22912 for freebsd-current-outgoing; Wed, 11 Mar 1998 17:04:27 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from parkplace.cet.co.jp (parkplace.cet.co.jp [202.32.64.1]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id RAA22906 for ; Wed, 11 Mar 1998 17:04:24 -0800 (PST) (envelope-from michaelh@cet.co.jp) Received: from localhost (michaelh@localhost) by parkplace.cet.co.jp (8.8.8/CET-v2.2) with SMTP id BAA07325; Thu, 12 Mar 1998 01:02:58 GMT Date: Thu, 12 Mar 1998 10:02:58 +0900 (JST) From: Michael Hancock To: dave adkins cc: current@FreeBSD.ORG Subject: Re: ext2_sync and NULL inode and VNON v_type In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG You can just OR it into the check below it for a more canonical fix. if ((vp->v_type == VNON) || ((ip->i_flag & Make this patch and post it so some ext2 fs users can test it. Mike Hancock On Tue, 10 Mar 1998, dave adkins wrote: > In current as of 980310, a r/w mounted ext2 filesystem panics on the first > sync. This happens when a vnode of type VNON with ip == NULL is processed. > > I have added a test for a v_type of VNON in ext2_sync(). > > if (VOP_ISLOCKED(vp)) > continue; > + if ( vp->v_type == VNON ) > + continue; > ip = VTOI(vp); > if (ip == NULL) { > > > I haven't yet tried writing to the mounted file system with this patch. > > dave adkins > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-current" in the body of the message > -- michaelh@cet.co.jp http://www.cet.co.jp CET Inc., Daiichi Kasuya BLDG 8F, 2-5-12 Higashi Shinbashi, Minato-ku, Tokyo 105 Japan Tel: +81-3-3437-1761 Fax: +81-3-3437-1766 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message