summaryrefslogtreecommitdiffstats
path: root/fs/nfs/nfs2xdr.c
diff options
context:
space:
mode:
authorTrond Myklebust2010-02-08 15:32:40 +0100
committerTrond Myklebust2010-02-09 20:29:29 +0100
commitfdcb45777a3d1689c5541e1f85ee3ebbd197d2c1 (patch)
treee0fccac2d5b21b0ea0dbddc9ce7ccd50de341131 /fs/nfs/nfs2xdr.c
parentNFS: Remove a redundant check for PageFsCache in nfs_migrate_page() (diff)
downloadkernel-qcow2-linux-fdcb45777a3d1689c5541e1f85ee3ebbd197d2c1.tar.gz
kernel-qcow2-linux-fdcb45777a3d1689c5541e1f85ee3ebbd197d2c1.tar.xz
kernel-qcow2-linux-fdcb45777a3d1689c5541e1f85ee3ebbd197d2c1.zip
NFS: Fix the mapping of the NFSERR_SERVERFAULT error
It was recently pointed out that the NFSERR_SERVERFAULT error, which is designed to inform the user of a serious internal error on the server, was being mapped to an error value that is internal to the kernel. This patch maps it to the error EREMOTEIO, which is exported to userland through errno.h. Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com> Cc: stable@kernel.org
Diffstat (limited to 'fs/nfs/nfs2xdr.c')
-rw-r--r--fs/nfs/nfs2xdr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/nfs2xdr.c b/fs/nfs/nfs2xdr.c
index 5e078b222b4e..7bc2da8efd4a 100644
--- a/fs/nfs/nfs2xdr.c
+++ b/fs/nfs/nfs2xdr.c
@@ -699,7 +699,7 @@ static struct {
{ NFSERR_BAD_COOKIE, -EBADCOOKIE },
{ NFSERR_NOTSUPP, -ENOTSUPP },
{ NFSERR_TOOSMALL, -ETOOSMALL },
- { NFSERR_SERVERFAULT, -ESERVERFAULT },
+ { NFSERR_SERVERFAULT, -EREMOTEIO },
{ NFSERR_BADTYPE, -EBADTYPE },
{ NFSERR_JUKEBOX, -EJUKEBOX },
{ -1, -EIO }