mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-06 08:46:46 +00:00
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: Trond Myklebust <trond.myklebust@primarydata.com>
This commit is contained in:
parent
35a2442189
commit
54551d85ad
1 changed files with 4 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue