STABLE14-nfs3-no-readdirplus-20041108

FIXES 15961

don't support readdirplus in nfsv3


(cherry picked from commit 31dd436712c7119a0bcb0ad534b7e9e6304dd298)
This commit is contained in:
Jeffrey Hutzelman 2004-11-09 17:18:18 +00:00 committed by Derrick Brashear
parent 8808a9baa6
commit 9e5997c9f5

View 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);