From 6b391e257211663f018332b6d4af837993b56d13 Mon Sep 17 00:00:00 2001 From: steve Date: Sat, 28 Mar 1998 16:05:05 +0000 Subject: Don't allow the readdirplus routine to be used in NFS V2. PR: 5102 Reviewed by: msmith Submitted by: Dmitry Kohmanyuk --- sys/nfsclient/nfs_bio.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sys/nfsclient/nfs_bio.c') diff --git a/sys/nfsclient/nfs_bio.c b/sys/nfsclient/nfs_bio.c index c1f8bb2..46020e5 100644 --- a/sys/nfsclient/nfs_bio.c +++ b/sys/nfsclient/nfs_bio.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * @(#)nfs_bio.c 8.9 (Berkeley) 3/30/95 - * $Id: nfs_bio.c,v 1.52 1998/03/07 21:36:01 dyson Exp $ + * $Id: nfs_bio.c,v 1.53 1998/03/08 09:57:54 julian Exp $ */ @@ -1148,6 +1148,8 @@ nfs_doio(bp, cr, p) case VDIR: nfsstats.readdir_bios++; uiop->uio_offset = ((u_quad_t)bp->b_lblkno) * NFS_DIRBLKSIZ; + if (!(nmp->nm_flag & NFSMNT_NFSV3)) + nmp->nm_flag &= ~NFSMNT_RDIRPLUS; if (nmp->nm_flag & NFSMNT_RDIRPLUS) { error = nfs_readdirplusrpc(vp, uiop, cr); if (error == NFSERR_NOTSUPP) -- cgit v1.1