Commit 54551d85 authored by Trond Myklebust's avatar Trond Myklebust

NFS: Add a few more fatal I/O errors to nfs_error_is_fatal()

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: default avatarTrond Myklebust <trond.myklebust@primarydata.com>
parent 35a24421
...@@ -756,9 +756,13 @@ static inline bool nfs_error_is_fatal(int err) ...@@ -756,9 +756,13 @@ static inline bool nfs_error_is_fatal(int err)
{ {
switch (err) { switch (err) {
case -ERESTARTSYS: case -ERESTARTSYS:
case -EACCES:
case -EDQUOT:
case -EFBIG:
case -EIO: case -EIO:
case -ENOSPC: case -ENOSPC:
case -EROFS: case -EROFS:
case -ESTALE:
case -E2BIG: case -E2BIG:
return true; return true;
default: default:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment