Re: NFS Client patch

From: Chris Mason (
Date: Wed Jul 18 2001 - 08:57:56 EST

On Wednesday, July 18, 2001 02:02:33 AM +0400 Hans Reiser <> wrote:

> Andi Kleen wrote:
>> Craig Soules <> writes:
>> > Our system does automatic directory compaction through the use of a tree
>> > structure, and so the cookie needs to be invalidated. Also, any other
>> > file system whicih does immediate directory compaction would require this.
>> Actually all the file systems who do that on Linux (JFS, XFS, reiserfs)
>> have fixed the issue properly server side, by adding a layer that generates
>> stable cookies. You should too.

> I take issue with the word "properly". We have bastardized our FS design to do it. NFS should not
> be allowed to impose stable cookie maintenance on filesystems, it violates layering. Simply
> returning the last returned filename is so simple to code, much simpler than what we have to do to
> cope with cookies. Linux should fix the protocol for NFS, not ask Craig to screw over his FS
> design. Not that I think that will happen.....

Well, returning the last filename won't do much for filesystems that don't
have any directory indexes, but that's besides the point. Could nfsv4 be
better than it is? probably. Can we change older NFS protocols to have
a linux specific hack that makes them more filesystem (or at least reiserfs)
friendly? probably.

NFS is what it is, good and bad. People use it because it fits their setup
better than the others, so the filesystems need to cater to it, exactly
because it has such a large cross platform user base. Linux specific mods
take away from that cross platform base.


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

This archive was generated by hypermail 2b29 : Mon Jul 23 2001 - 21:00:10 EST