Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 Jul 1998 19:12:31 -0500
From:      Chris Radek <cradek@in221.inetnebr.com>
To:        freebsd-current@FreeBSD.ORG
Cc:        fluffy@int.tele.dk
Subject:   Re: ext2fs and sync panic, still
Message-ID:  <m0z0atz-000PTRC@hoser.inetnebr.com>
In-Reply-To: Your message of "Sun, 26 Jul 1998 16:06:26 CDT." <m0z0Xzu-000PTPC@hoser.inetnebr.com> 

next in thread | previous in thread | raw e-mail | index | archive | help

On Sun, 26 Jul 1998 16:06:26 CDT,  Chris Radek writes:

> I have run into the problem where mounting an ext2fs r/w panics as 
> soon as sync is called.  r/o has no problems.  This is from current 
> as of a couple days ago.

Is it sane to reply to yourself?  I hope so.

The problem is that ext2_sync is trying to sync vnodes of type VNON
(which have no associated inode and hence NULL v_data).  

The following patch fixes the panic:

% diff -u ext2_vfsops.c.orig ext2_vfsops.c
--- ext2_vfsops.c.orig  Sun Jul 26 19:48:29 1998
+++ ext2_vfsops.c       Sun Jul 26 20:14:15 1998
@@ -854,6 +854,8 @@
                        goto loop;
                if (VOP_ISLOCKED(vp))
                        continue;
+               if (vp->v_type == VNON)
+                       continue;
                ip = VTOI(vp);
                if ((ip->i_flag &
                    (IN_ACCESS | IN_CHANGE | IN_MODIFIED | IN_UPDATE)) == 0 &&



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?m0z0atz-000PTRC>