Skip to content
Snippets Groups Projects
Commit 304020fe authored by Trond Myklebust's avatar Trond Myklebust Committed by Anna Schumaker
Browse files

NFSv4: Open state recovery must account for file permission changes


If the file permissions change on the server, then we may not be able to
recover open state. If so, we need to ensure that we mark the file
descriptor appropriately.

Cc: stable@vger.kernel.org
Signed-off-by: default avatarTrond Myklebust <trond.myklebust@primarydata.com>
Tested-by: default avatarOleg Drokin <green@linuxhacker.ru>
Signed-off-by: default avatarAnna Schumaker <Anna.Schumaker@Netapp.com>
parent 67dd4830
No related branches found
No related tags found
No related merge requests found
...@@ -1532,6 +1532,9 @@ restart: ...@@ -1532,6 +1532,9 @@ restart:
__func__, status); __func__, status);
case -ENOENT: case -ENOENT:
case -ENOMEM: case -ENOMEM:
case -EACCES:
case -EROFS:
case -EIO:
case -ESTALE: case -ESTALE:
/* Open state on this file cannot be recovered */ /* Open state on this file cannot be recovered */
nfs4_state_mark_recovery_failed(state, status); nfs4_state_mark_recovery_failed(state, status);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment