]> git.baikalelectronics.ru Git - kernel.git/commitdiff
nfsd: Add errno mapping for EREMOTEIO
authorJeff Layton <jeff.layton@primarydata.com>
Sun, 19 Dec 2021 01:37:55 +0000 (20:37 -0500)
committerChuck Lever <chuck.lever@oracle.com>
Sat, 8 Jan 2022 19:42:01 +0000 (14:42 -0500)
The NFS client can occasionally return EREMOTEIO when signalling issues
with the server.  ...map to NFSERR_IO.

Signed-off-by: Jeff Layton <jeff.layton@primarydata.com>
Signed-off-by: Lance Shelton <lance.shelton@hammerspace.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/nfsd/nfsproc.c

index 54436919be8cb6dd8e8c7a5163dc38350a96b5d6..da0414ecf4d2705512ae30223ffa6977e1c16e2b 100644 (file)
@@ -874,6 +874,7 @@ nfserrno (int errno)
                { nfserr_toosmall, -ETOOSMALL },
                { nfserr_serverfault, -ESERVERFAULT },
                { nfserr_serverfault, -ENFILE },
+               { nfserr_io, -EREMOTEIO },
                { nfserr_io, -EUCLEAN },
                { nfserr_perm, -ENOKEY },
                { nfserr_no_grace, -ENOGRACE},