Pathconf: for V2 mounts, revert back to failing with EINVAL if an RPC would

be necessary to obtain the information, as this fits the pathconf semantics
of `no association supported' better than `no limit available.'
This commit is contained in:
kleink 1998-08-08 11:39:20 +00:00
parent f0622bf9a4
commit 4d9c340f85
1 changed files with 2 additions and 7 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: nfs_vnops.c,v 1.95 1998/08/07 11:02:39 kleink Exp $ */
/* $NetBSD: nfs_vnops.c,v 1.96 1998/08/08 11:39:20 kleink Exp $ */
/*
* Copyright (c) 1989, 1993
@ -3000,12 +3000,7 @@ nfs_pathconf(v)
case _PC_CHOWN_RESTRICTED:
case _PC_NO_TRUNC:
if (!v3) {
/*
* The pathconf name is not invalid, we just don't
* have a limit for these. Per POSIX, this is not
* an error.
*/
*ap->a_retval = -1;
error = EINVAL;
break;
}
nfsstats.rpccnt[NFSPROC_PATHCONF]++;