Subject: Today's updae & NFS directories
To: None <current-users@NetBSD.ORG>
From: Frank van der Linden <frank@wins.uva.nl>
List: current-users
Date: 10/23/1997 17:01:35
If you compile a kernel from today's (oct 23) sources, and you are
seeing larges NFS directories turn up empty the first time they're
read, apply the appended fix to src/sys/nfs/nfs_bio.c. I made a goof
in my previous change. The next update should have this fix in it.

- Frank

*** nfs_bio.c	1997/10/22 01:45:16	1.38
--- nfs_bio.c	1997/10/23 14:12:14	1.39
***************
*** 361,369 ****
  		     * Just return if we hit EOF right away with this
  		     * block.
  		     */
! 		    if (ndp->dc_blkcookie == np->n_direofoffset) {
! 			brelse(bp);
! 			return (0);
  		    }
  		}
  
--- 361,370 ----
  		     * Just return if we hit EOF right away with this
  		     * block.
  		     */
! 		    if (np->n_direofoffset != 0 && 
! 			ndp->dc_blkcookie == np->n_direofoffset) {
! 			    brelse(bp);
! 			    return (0);
  		    }
  		}