Date: Thu, 12 Mar 1998 10:02:58 +0900 (JST) From: Michael Hancock <michaelh@cet.co.jp> To: dave adkins <adkin003@tc.umn.edu> Cc: current@FreeBSD.ORG Subject: Re: ext2_sync and NULL inode and VNON v_type Message-ID: <Pine.SV4.3.95.980312094638.6995B-100000@parkplace.cet.co.jp> In-Reply-To: <Pine.NEB.3.96.980310072629.1093A-100000@samthedog>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.SV4.3.95.980312094638.6995B-100000>
