]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
STABLE14-nfs3-no-readdirplus-20041108
authorJeffrey Hutzelman <jhutz@cmu.edu>
Tue, 9 Nov 2004 17:18:18 +0000 (17:18 +0000)
committerDerrick Brashear <shadow@dementia.org>
Tue, 9 Nov 2004 17:18:18 +0000 (17:18 +0000)
FIXES 15961

don't support readdirplus in nfsv3

(cherry picked from commit 31dd436712c7119a0bcb0ad534b7e9e6304dd298)

src/afs/afs_nfsdisp.c

index 71eac0edd8b7a024221cbb531b6b0b4838f8eb57..5260b3db03a1cdbb4e8cfb123dadbe2e5e002e02 100644 (file)
@@ -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);