FreeBSD/sys/fs/nfsserver/nfs_nfsdsubs.c
/*
 * Check to see if the error is a valid NFS one. If not, replace it with
 * NFSERR_IO.
 */
Check to see if the error is a valid NFS one. If not, replace it with
NFSERR_IO.
Check to see if the error is a valid NFS one . If not replace it with NFSERR_IO .
static u_int32_t
nfsrv_isannfserr(u_int32_t errval)
{
	if (errval == NFSERR_OK)
		return (errval);
	if (errval >= NFSERR_BADHANDLE && errval <= NFSERR_DELEGREVOKED)
		return (errval);
	if (errval > 0 && errval <= NFSERR_REMOTE)
		return (nfsrv_v2errmap[errval - 1]);
	return (NFSERR_IO);
}
static u_int32_t nfsrv_isannfserr ( u_int32_t errval ) { if ( errval == NFSERR_OK ) return ( errval ) ; if ( errval >= NFSERR_BADHANDLE && errval <= NFSERR_DELEGREVOKED ) return ( errval ) ; if ( errval > 0 && errval <= NFSERR_REMOTE ) return ( nfsrv_v2errmap [ errval - 1 ] ) ; return ( NFSERR_IO ) ; }
Check to see if the error is a valid NFS one.
Check to see if the error is a valid NFS one .