Re: [2.4.5 and all ac-Patches] massive file corruption with reiser or NFS

Andreas Hartmann (andihartmann@freenet.de)
Sat, 2 Jun 2001 20:08:49 +0200


Am Samstag, 2. Juni 2001 18:19 schrieben Sie:
> > I got massive file corruptions with the kernels mentioned in the subject.
> > I can reproduce it every time.
>
> Which other 2.4 trees have you tried ?

I had the following situations:

NFS server:
linux 2.2.19

NFS Client:
linux 2.4.[32]ac[...],
linux 2.4.4ac[1-...]
[1-10] have been working fine. Beginning with ac11, I got the problems I
wrote. During this time, I never used any knfsd-patch.

The following is the combination, which seems to be working fine:

NFS Server:
linux 2.2.19 with knfsd-patch or linux 2.4.5 with the following knfsd-Patch
from Gergely Tamas <dice@mfa.kfki.hu> (I got it from the mailinglist of
reiser) (there is no patch for ac6):

--------------------------------------------------------------------------------------
--- linux-2.4.5/fs/inode.c.orig Fri May 25 14:15:38 2001
+++ linux-2.4.5/fs/inode.c Wed May 30 12:17:29 2001
@@ -1044,6 +1044,8 @@
inode->i_state|=I_FREEING;
inodes_stat.nr_inodes--;
spin_unlock(&inode_lock);
+ if (inode->i_data.nrpages)
+ truncate_inode_pages(&inode->i_data,
0);
clear_inode(inode);
}
}

--- linux-2.4.5-pre6/fs/nfs/dir.c.orig Fri May 25 14:15:38 2001
+++ linux-2.4.5-pre6/fs/nfs/dir.c Thu May 31 14:53:32 2001
@@ -753,6 +753,8 @@

nfs_zap_caches(dir);
error = NFS_PROTO(dir)->rmdir(dir, &dentry->d_name);
+ if (!error)
+ dentry->d_inode->i_nlink -= 2;

return error;
}
@@ -870,6 +872,8 @@
error = NFS_PROTO(dir)->remove(dir, &dentry->d_name);
if (error < 0)
goto out;
+ if (inode)
+ inode->i_nlink--;

out_delete:
/*
------------------------------------------------------------------------

I patched the original 2.4.5-sources.

NFS Client:
linux 2.4.5 with knfsd-patch.

I need the patch on both the server and the client to get it working.

>
> Does booting with ide=nodma help ? [only in -ac]

I tested the following combination:

Server
2.2.19 without knfsd-Patch

Client
2.4.5ac6 without knfsd-Patch but ide=nodma

Result:
IO-Errors as I wrote in my initial posting.

Regards
Adnreas Hartmann
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/