summaryrefslogtreecommitdiffstats
path: root/fs/nfs
diff options
context:
space:
mode:
authorManoj Naik <manoj@almaden.ibm.com>2005-06-22 19:16:39 +0200
committerTrond Myklebust <Trond.Myklebust@netapp.com>2005-06-22 22:07:44 +0200
commit6ebf3656fd18430d90fbb3199b31d08178c37134 (patch)
tree3eddf4d1b67ffece40531d929b143a4fb30baaa3 /fs/nfs
parent[PATCH] NFSv4: add support for rdattr_error in NFSv4 readdir requests. (diff)
downloadlinux-6ebf3656fd18430d90fbb3199b31d08178c37134.tar.xz
linux-6ebf3656fd18430d90fbb3199b31d08178c37134.zip
[PATCH] NFSv4: Map a couple of NFSv4 errors to EINVAL.
This shows up on running tar over NFSv4. Signed-off-by: Manoj Naik <manoj@almaden.ibm.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs')
-rw-r--r--fs/nfs/nfs4xdr.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/nfs/nfs4xdr.c b/fs/nfs/nfs4xdr.c
index 4d655d252c6d..577b4429c8f6 100644
--- a/fs/nfs/nfs4xdr.c
+++ b/fs/nfs/nfs4xdr.c
@@ -4109,6 +4109,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 },