Subject: sun-lamp CVS commits
To: None <source-changes@pain.lcs.mit.edu>
From: The Source of All Evil <source@NetBSD.ORG>
List: source-changes
Date: 10/13/1995 21:00:09
ghudson
Fri Oct 13 20:56:12 EDT 1995
Update of /a/cvsroot/src/sys/nfs
In directory pain.lcs.mit.edu:/b/tmp/cvs-serv6196

Modified Files:
	nfs_vnops.c 
Log Message:
Add cookie support.  Stash cookies in the word prior to the end of
each entry, and read them out in nfs_readdir().

Caveat: our current caching method for directory blocks uses the
server offset of the first directory entry as an identifier, so a
Linux emulation getdirentries() will wind up retrieving one block from
the NFS server for each directory entry, unnecessarily thrashing the
cache.  The situation isn't as bad for other emulations.

Instead of getblk(), we need to write a routine to scan each cache
block associated with vp to find a cookie that matches at some
directory entry.  Some later time.