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
This commit is contained in:
@ -120,7 +120,7 @@ static struct {
|
||||
{ .status = MNT3ERR_INVAL, .errno = -EINVAL, },
|
||||
{ .status = MNT3ERR_NAMETOOLONG, .errno = -ENAMETOOLONG, },
|
||||
{ .status = MNT3ERR_NOTSUPP, .errno = -ENOTSUPP, },
|
||||
{ .status = MNT3ERR_SERVERFAULT, .errno = -ESERVERFAULT, },
|
||||
{ .status = MNT3ERR_SERVERFAULT, .errno = -EREMOTEIO, },
|
||||
};
|
||||
|
||||
struct mountres {
|
||||
|
Reference in New Issue
Block a user