nfsd: only WARN once on unmapped errors
Subsystems (2)
PATCH 1/2 nfsd: only WARN once on unmapped errors
From: "J. Bruce Fields" <[email protected]>
No need to spam the logs here.
The only drawback is losing information if we ever encounter two different unmapped errors, but in practice we've rarely see even one.
Signed-off-by J. Bruce Fields <[email protected]>
--- fs/nfsd/nfsproc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fs/nfsd/nfsproc.c +1 -1
@@ -798,7 +798,7 @@ nfserrno (int errno)if (nfs_errtbl[i].syserr == errno)return nfs_errtbl[i].nfserr; } -WARN (1 ,"nfsd: non-standard errno: %d\n" , errno); +WARN_ONCE (1 ,"nfsd: non-standard errno: %d\n" , errno);return nfserr_io; }
Signature · 1 line
2.7.4
PATCH 2/2 nfsd: handle EUCLEAN
From: "J. Bruce Fields" <[email protected]>
Eric Sandeen reports that xfs can return this if filesystem corruption prevented completing the operation.
Reported-by Eric Sandeen <[email protected]>
Signed-off-by J. Bruce Fields <[email protected]>
--- fs/nfsd/nfsproc.c | 1 + 1 file changed, 1 insertion(+)
fs/nfsd/nfsproc.c +1 -0
@@ -791,6 +791,7 @@ nfserrno (int errno) { nfserr_toosmall, -ETOOSMALL }, { nfserr_serverfault, -ESERVERFAULT }, { nfserr_serverfault, -ENFILE }, + { nfserr_io, -EUCLEAN }, };int i;
Signature · 1 line
2.7.4