Re: NFS Client patch

From: Craig Soules (soules@happyplace.pdl.cmu.edu)
Date: Tue Jul 10 2001 - 11:48:20 EST


On Tue, 10 Jul 2001, Andi Kleen wrote:
> Because to get that new cookie you would need another cookie; otherwise
> you could violate the readdir guarantee that it'll never return files
> twice.

I cannot locate any such guarantee in the NFS spec... are you refering to
another spec which applies?

> BTW; the cookie issue is not an NFS only problem. It occurs on local
> IO as well. Just consider rm -rf - reading directories and in parallel
> deleting them (the original poster's file system would have surely
> gotten that wrong). Another tricky case is telldir().

I don't believe that the behavior in this case is deterministic. If you
have multiple people accessing a single file, reading and writing to it,
there is no guarantee as to what the behavior is. The client should be
able to handle any errors it creates for itself while doing this kind of
parallel operation.

Craig

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



This archive was generated by hypermail 2b29 : Sun Jul 15 2001 - 21:00:12 EST