diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2010-02-08 15:32:40 +0100 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2010-02-09 20:29:29 +0100 |
commit | fdcb45777a3d1689c5541e1f85ee3ebbd197d2c1 (patch) | |
tree | e0fccac2d5b21b0ea0dbddc9ce7ccd50de341131 /fs/nfs/mount_clnt.c | |
parent | NFS: Remove a redundant check for PageFsCache in nfs_migrate_page() (diff) | |
download | linux-fdcb45777a3d1689c5541e1f85ee3ebbd197d2c1.tar.xz 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/mount_clnt.c')
-rw-r--r-- | fs/nfs/mount_clnt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/mount_clnt.c b/fs/nfs/mount_clnt.c index 0adefc40cc89..59047f8d7d72 100644 --- a/fs/nfs/mount_clnt.c +++ b/fs/nfs/mount_clnt.c @@ -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 { |