[Top] [All Lists]

Re: 2.6.0-test5-mm3 & XFS FS Corruption (or not?)

To: Walt H <waltabbyh@xxxxxxxxxxx>
Subject: Re: 2.6.0-test5-mm3 & XFS FS Corruption (or not?)
From: Nathan Scott <nathans@xxxxxxx>
Date: Mon, 22 Sep 2003 11:12:41 +1000
Cc: Linux Kernel <linux-kernel@xxxxxxxxxxxxxxx>, Linux XFS Mailing List <linux-xfs@xxxxxxxxxxx>
In-reply-to: <3F6E49D2.8060901@xxxxxxxxxxx>
References: <3F6DC819.8060003@xxxxxxxxxxx> <3F6DE929.4040904@xxxxxxxxxxx> <1064173697.2285.4.camel@xxxxxxxxxxxxxxxxxxxxxxx> <3F6E49D2.8060901@xxxxxxxxxxx>
Sender: linux-xfs-bounce@xxxxxxxxxxx
User-agent: Mutt/1.5.3i
On Sun, Sep 21, 2003 at 06:01:06PM -0700, Walt H wrote:
> Steve Lord wrote:
> > 
> > If I am correct, test5-mm3 contains a bad version of the xfs code, there
> > was a bug where the i_flags field was setup from an uninitialized stack
> > variable. mm3 came out during the two days this was in Linus's tree.
> > I had some very odd behavior with this code base, rm -r -f would try and
> > cd into files and other bizzare things, files could appear to be
> > immutable or append only or things they were not. This sounds like
> > similar behavior you that you saw. It is fixed in the latest code Linus
> > has.
> Thanks for the reply Steve. I'm guessing that this code hasn't hit CVS
> yet, as I can still reproduce it with a current CVS @ 9/21/03 ~ 17:30
> PST  Sounds like this is a known issue, so I'll just go back to the xfs
> code from -mm2 for now.

The fix is below, I'd be interested in whether or not you still have
problems after applying this.



--- /usr/tmp/TmpDir.2990917-0/linux/fs/xfs/linux/xfs_vnode.c_1.117      Mon Sep 
22 11:10:21 2003
+++ linux/fs/xfs/linux/xfs_vnode.c      Fri Sep 19 13:17:14 2003
@@ -200,7 +200,7 @@
        vn_trace_entry(vp, "vn_revalidate", (inst_t *)__return_address);
        ASSERT(vp->v_fbhv != NULL);
-       va.va_mask = XFS_AT_STAT;
+       va.va_mask = XFS_AT_STAT|XFS_AT_GENCOUNT;
        VOP_GETATTR(vp, &va, 0, NULL, error);
        if (!error) {
                inode = LINVFS_GET_IP(vp);

<Prev in Thread] Current Thread [Next in Thread>