Re: [Ext2-devel] Re: [NFS] htree+NFS (NFS client bug?)

Trond Myklebust (trond.myklebust@fys.uio.no)
Thu, 28 Nov 2002 17:58:04 +0100


>>>>> " " == Stephen C Tweedie <sct@redhat.com> writes:

>> We could possibly cache the EOF status by overloading some
>> other field in the struct file. f_version comes to mind as a
>> useful candidate, since it automatically gets reset by llseek.

> If you want it to be preserved in cache, it needs to be in the
> inode, not in the file.

You misunderstand the problem. It isn't that the page cache has an
incorrect representation of the stream: the page cache is indeed
stopping filling as soon as it hits the EOF marker.

The problem is that we are stuffing the server-supplied cookies into
file->f_pos and using them to reconstruct where we are in the readdir
stream.
As there is no reserved 'EOF cookie' defined by the protocol that we
might use, we must either rely on the server giving us a unique cookie
also for the EOF case, or else mark the fact that filp->f_pos points
to EOF in some other way.

Cheers,
Trond
-
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/