Commit 6b2e6483 authored by Trond Myklebust's avatar Trond Myklebust Committed by Willy Tarreau

NFSv4: Open state recovery must account for file permission changes

commit 304020fe upstream.

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.
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>
Signed-off-by: default avatarWilly Tarreau <w@1wt.eu>
parent e9276478
......@@ -1464,6 +1464,9 @@ static int nfs4_reclaim_open_state(struct nfs4_state_owner *sp, const struct nfs
"Zeroing state\n", __func__, status);
case -ENOENT:
case -ENOMEM:
case -EACCES:
case -EROFS:
case -EIO:
case -ESTALE:
/*
* Open state on this file cannot be recovered
......
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