/* Convert an NFS error code to a local one. This one is used jointly by NFSv2 and NFSv3.  */
static int nfs4_stat_to_errno(int)
/* Convert an NFS error code to a local one. This one is used jointly by NFSv2 and NFSv3.  */
static int nfs4_stat_to_errno(int)
{
	int i;
	for (i = 0; nfs_errtbl[i].stat != -1; i++) {
		if (nfs_errtbl[i].stat == stat)
			return nfs_errtbl[i].errno;
	}
	if (stat <= 10000 || stat > 10100) {
		return -EREMOTEIO;
	}
	return -stat;
}