Re: If not readdir() then what?



On Mon, 2007-04-09 at 13:09 +0200, Jörn Engel wrote:
That surely doesn't make life any easier for filesystem developers, I
agree. From that point of view, all telldir cookies should end their
life at closedir time. For "rm -r" it would be sufficient if the nfs
client simply didn't seekdir at all. For "ls -lR", this would return
duplicate dentries.

Please go read the NFS spec. The only thing an NFS client has in order
to read a directory is a READDIR operation that in essence takes a
filehandle and a cookie as its arguments. Unless the server is able to
return the entire rest of the directory in one RPC reply, the client
needs to send a second READDIR operation with a cookie from the previous
READDIR operation. The server is expected to return cookies for _each_
entry in the directory.

That is a protocol limitation, not a client limitation.

Trond

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



Relevant Pages

  • Re: If not readdir() then what?
    ... Please go read the NFS spec. ... The only thing an NFS client has in order ... filehandle and a cookie as its arguments. ... needs to send a second READDIR operation with a cookie from the previous ...
    (Linux-Kernel)
  • Re: pNFS rant (was Re: [PATCH 1/8] exofs: Kbuild, Headers and osd utils)
    ... Have you read the spec of pNFS-objects layout? ... I plan to add v4.1 and pNFS support to my NFS ... But anything beyond the NFS protocol for talking client data servers ...
    (Linux-Kernel)
  • Re: Help me replace some Windows installations
    ... > Possible with untrusted clients in SMB, and trusted clients in NFS. ... >> trust every client that might be connected to this network. ... > Still, user ABC on client, accesses to server with rights of the user ... > which Peter already told you about, or use SMB for Linux to Linux ...
    (comp.os.linux.setup)
  • Re: pNFS rant (was Re: [PATCH 1/8] exofs: Kbuild, Headers and osd utils)
    ... Have you read the spec of pNFS-objects layout? ... I plan to add v4.1 and pNFS support to my NFS ... But anything beyond the NFS protocol for talking client data servers ...
    (Linux-Kernel)
  • pNFS rant (was Re: [PATCH 1/8] exofs: Kbuild, Headers and osd utils)
    ... Have you read the spec of pNFS-objects layout? ... I plan to add v4.1 and pNFS support to my NFS server, once v4.0 support is working well. ... But anything beyond the NFS protocol for talking client data servers is code bloat complexity madness for an NFS client that wishes to be compatible with "most of the NFS 4.1 world". ...
    (Linux-Kernel)