projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
35a2442
)
NFS: Add a few more fatal I/O errors to nfs_error_is_fatal()
author
Trond Myklebust
<trond.myklebust@primarydata.com>
Wed, 26 Apr 2017 16:21:49 +0000
(12:21 -0400)
committer
Trond 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
patch
|
blob
|
history
diff --git
a/fs/nfs/internal.h
b/fs/nfs/internal.h
index 7b38fedb7e032824ec509edca5cf465a22147851..31b26cf1b476618d37549386b6da1acf91258f84 100644
(file)
--- a/
fs/nfs/internal.h
+++ b/
fs/nfs/internal.h
@@
-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: