NFS: Fix the mapping of the NFSERR_SERVERFAULT error
commit892faa5a39f6236bccbe6f48a5f736a8aec9b278
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Mon, 8 Feb 2010 14:32:40 +0000 (8 09:32 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 23 Feb 2010 15:37:51 +0000 (23 07:37 -0800)
tree6388d5590d0a001162d402b87543d97f48d6c2cb
parent5ba0facdbeb73ead6fe04d6bc5947e2fb4f29320
NFS: Fix the mapping of the NFSERR_SERVERFAULT error

commit fdcb45777a3d1689c5541e1f85ee3ebbd197d2c1 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/nfs/mount_clnt.c
fs/nfs/nfs2xdr.c
fs/nfs/nfs4xdr.c