[patch 1/1] NFSv4: Map a couple of NFSv4 errors to EINVAL. This shows up on running tar over NFSv4. Signed-off-by: Manoj Naik Signed-off-by: Trond Myklebust --- nfs4xdr.c | 2 ++ 1 files changed, 2 insertions(+) Index: linux-2.6.12/fs/nfs/nfs4xdr.c =================================================================== --- linux-2.6.12.orig/fs/nfs/nfs4xdr.c +++ linux-2.6.12/fs/nfs/nfs4xdr.c @@ -4216,6 +4216,8 @@ static struct { { NFS4ERR_DQUOT, EDQUOT }, { NFS4ERR_STALE, ESTALE }, { NFS4ERR_BADHANDLE, EBADHANDLE }, + { NFS4ERR_BADOWNER, EINVAL }, + { NFS4ERR_BADNAME, EINVAL }, { NFS4ERR_BAD_COOKIE, EBADCOOKIE }, { NFS4ERR_NOTSUPP, ENOTSUPP }, { NFS4ERR_TOOSMALL, ETOOSMALL },