Rafi KC has uploaded this change for review.
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@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 change 1225173. To unsubscribe, or for help writing mail filters, visit settings.