]> git.hungrycats.org Git - linux/commitdiff
NFSv4: OK, so it's trivial and probably superfluous, but I don't see
authorTrond Myklebust <trond.myklebust@fys.uio.no>
Mon, 23 Aug 2004 14:10:18 +0000 (10:10 -0400)
committerTrond Myklebust <trond.myklebust@fys.uio.no>
Mon, 23 Aug 2004 14:10:18 +0000 (10:10 -0400)
   why we shouldn't be slightly stricter here, so I'm just going to
   keep sending this until I'm told to stop.... Make sure that
   unmapped errors are approximately in the range of defined NFS4
   errors.

Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Signed-off-by: Trond Myklebust <trond.myklebust@fys.uio.no>
fs/nfs/nfs4xdr.c

index c0a4080db68189badcf0dbb2f85e5e553ae750ca..a8d4e4c5224e4a9a03f5d0bee44f9fb673857e72 100644 (file)
@@ -3777,7 +3777,7 @@ nfs_stat_to_errno(int stat)
                if (nfs_errtbl[i].stat == stat)
                        return nfs_errtbl[i].errno;
        }
-       if (stat < 0) {
+       if (stat <= 10000 || stat > 10100) {
                /* The server is looney tunes. */
                return ESERVERFAULT;
        }