From 9e5997c9f5efddd22f8d5407f7615ce7672e7143 Mon Sep 17 00:00:00 2001 From: Jeffrey Hutzelman Date: Tue, 9 Nov 2004 17:18:18 +0000 Subject: [PATCH] STABLE14-nfs3-no-readdirplus-20041108 FIXES 15961 don't support readdirplus in nfsv3 (cherry picked from commit 31dd436712c7119a0bcb0ad534b7e9e6304dd298) --- src/afs/afs_nfsdisp.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/afs/afs_nfsdisp.c b/src/afs/afs_nfsdisp.c index 71eac0edd8..5260b3db03 100644 --- a/src/afs/afs_nfsdisp.c +++ b/src/afs/afs_nfsdisp.c @@ -747,6 +747,13 @@ afs_nfs3_noaccess(struct afs_nfs3_resp *resp) resp->flags = FALSE; } +void +afs_nfs3_notsupp(struct afs_nfs3_resp *resp) +{ + resp->status = NFS3ERR_NOTSUPP; + resp->flags = FALSE; +} + afs_int32 nfs3_to_afs_call(int which, caddr_t * args, nfs_fh3 ** fhpp, nfs_fh3 ** fh2pp) { @@ -1370,6 +1377,8 @@ afs_nfs3_readdirplus(char *args, char *xp, char *exp, char *rp, char *crp) crp); if (call > 1) afs_nfs3_noaccess((struct afs_nfs3_resp *)xp); + else if (call == 1) + afs_nfs3_notsupp((struct afs_nfs3_resp *)xp); else (*afs_rfs3_disp_tbl[NFSPROC3_READDIRPLUS].orig_proc) (args, xp, exp, rp, crp);