projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
67dd483
)
NFSv4: Open state recovery must account for file permission changes
author
Trond Myklebust
<
[email protected]
>
Thu, 22 Sep 2016 17:39:18 +0000
(13:39 -0400)
committer
Anna Schumaker
<
[email protected]
>
Tue, 27 Sep 2016 18:35:19 +0000
(14:35 -0400)
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:
[email protected]
Signed-off-by: Trond Myklebust <
[email protected]
>
Tested-by: Oleg Drokin <
[email protected]
>
Signed-off-by: Anna Schumaker <
[email protected]
>
fs/nfs/nfs4state.c
patch
|
blob
|
history
diff --git
a/fs/nfs/nfs4state.c
b/fs/nfs/nfs4state.c
index 4b538bb194f8896731cc8b13a335d5813bebc56a..0a25f70a3b0bb3591476c29f7530763df9e3098e 100644
(file)
--- a/
fs/nfs/nfs4state.c
+++ b/
fs/nfs/nfs4state.c
@@
-1532,6
+1532,9
@@
restart:
__func__, status);
case -ENOENT:
case -ENOMEM:
+ case -EACCES:
+ case -EROFS:
+ case -EIO:
case -ESTALE:
/* Open state on this file cannot be recovered */
nfs4_state_mark_recovery_failed(state, status);