]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
NFS: Add a few more fatal I/O errors to nfs_error_is_fatal()
authorTrond Myklebust <trond.myklebust@primarydata.com>
Wed, 26 Apr 2017 16:21:49 +0000 (12:21 -0400)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Wed, 26 Apr 2017 17:03:04 +0000 (13:03 -0400)
EACCES, EDQUOT, EFBIG and ESTALE are all fatal errors as far as NFS
I/O is concerned. They need to be reported back to the application.

Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/internal.h

index 7b38fedb7e032824ec509edca5cf465a22147851..31b26cf1b476618d37549386b6da1acf91258f84 100644 (file)
@@ -756,9 +756,13 @@ static inline bool nfs_error_is_fatal(int err)
 {
        switch (err) {
        case -ERESTARTSYS:
+       case -EACCES:
+       case -EDQUOT:
+       case -EFBIG:
        case -EIO:
        case -ENOSPC:
        case -EROFS:
+       case -ESTALE:
        case -E2BIG:
                return true;
        default: