Rafi KC has uploaded this change for review. (
https://review.gerrithub.io/c/ffilz/nfs-ganesha/+/1225173?usp=email )
Change subject: nfs3/reopen: Retry open if failed with EPERM
......................................................................
nfs3/reopen: Retry open if failed with EPERM
If an open request fails with EPERM or EACCES, it may be due to a
permission change in the backend after the last access. When open
flags were modified before the failure, retrying with the original
flags helps avoid false failures caused by flag combinations.
For example, combining O_RDONLY and O_WRONLY into O_RDWR may result
in a permission denied error if write access is not allowed.
Fixes: #1335
Change-Id: I196c597def36c1254dde5f2116ccebc31b3f8c11
Signed-off-by: Mohammed Rafi KC <rafi.kavungal(a)iternity.com>
---
M src/FSAL/commonlib.c
M src/include/FSAL/fsal_commonlib.h
2 files changed, 26 insertions(+), 5 deletions(-)
git pull ssh://review.gerrithub.io:29418/ffilz/nfs-ganesha refs/changes/73/1225173/1
--
To view, visit
https://review.gerrithub.io/c/ffilz/nfs-ganesha/+/1225173?usp=email
To unsubscribe, or for help writing mail filters, visit
https://review.gerrithub.io/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: ffilz/nfs-ganesha
Gerrit-Branch: next
Gerrit-Change-Id: I196c597def36c1254dde5f2116ccebc31b3f8c11
Gerrit-Change-Number: 1225173
Gerrit-PatchSet: 1
Gerrit-Owner: Rafi KC <rafi.kavungal(a)iternity.com>