Re: NFS Client patch

Chris Mason (mason@suse.com)
Wed, 18 Jul 2001 09:57:56 -0400


On Wednesday, July 18, 2001 02:02:33 AM +0400 Hans Reiser <reiser@namesys.com> wrote:

> Andi Kleen wrote:
>>
>> Craig Soules <soules@happyplace.pdl.cmu.edu> 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.

-chris

-
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/