Re: If not readdir() then what?
- From: Trond Myklebust <trond.myklebust@xxxxxxxxxx>
- Date: Mon, 09 Apr 2007 08:31:37 -0400
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/
- Follow-Ups:
- Re: If not readdir() then what?
- From: Theodore Tso
- Re: If not readdir() then what?
- References:
- If not readdir() then what?
- From: Ulrich Drepper
- Re: If not readdir() then what?
- From: Theodore Tso
- Re: If not readdir() then what?
- From: Christoph Hellwig
- Re: If not readdir() then what?
- From: H. Peter Anvin
- Re: If not readdir() then what?
- From: Jörn Engel
- Re: If not readdir() then what?
- From: Theodore Tso
- Re: If not readdir() then what?
- From: H. Peter Anvin
- Re: If not readdir() then what?
- From: Theodore Tso
- Re: If not readdir() then what?
- From: Jörn Engel
- If not readdir() then what?
- Prev by Date: [PATCH 1/8] Resource counters
- Next by Date: [PATCH 2/8] Add container pointer on struct page
- Previous by thread: Re: If not readdir() then what?
- Next by thread: Re: If not readdir() then what?
- Index(es):
Relevant Pages
|