Sachin Punadikar has uploaded this change for review.
CEPH: Use root creds for reopen call
While reopening a file in CEPH, Ganesha should use root_creds. For a
normal user at NFS Client side, the user creds are not sufficient to
reopen a file (which was already created). So make use of root creds.
This issue is surfaced when git clone is issued at the NFS client side.
Relevant Ganesha logs:
nfs-ganesha-1091175[svc_51] fsal_start_io :FSAL :F_DBG :Use global fd openflags = 2
nfs-ganesha-1091175[svc_51] wait_to_start_io :FSAL :F_DBG :0x7fd3cc042170 try io_work = 1 fd_work = 0
nfs-ganesha-1091175[svc_51] wait_to_start_io :FSAL :F_DBG :Open mode = 0, desired mode = 2
nfs-ganesha-1091175[svc_51] wait_to_start_io :FSAL :F_DBG :0x7fd3cc042170 back off io_work (-1) = 0 fd_work = 1
nfs-ganesha-1091175[svc_51] ceph_reopen_func :FSAL :F_DBG :my_fd->fd = (nil) openflags = 2, posix_flags = 1
nfs-ganesha-1091175[svc_51] ceph_reopen_func :FSAL :F_DBG :open failed with Permission denied
nfs-ganesha-1091175[svc_51] reopen_fsal_fd :FSAL :DEBUG :fsal_reopen_fd returned Permission denied
Change-Id: Ib4841d4075a6b8705abe76dbf424b8363a41dcc0
Signed-off-by: Sachin Punadikar <sachin.punadikar@ibm.com>
---
M src/FSAL/FSAL_CEPH/handle.c
1 file changed, 3 insertions(+), 1 deletion(-)
git pull ssh://review.gerrithub.io:29418/ffilz/nfs-ganesha refs/changes/01/1230801/1
To view, visit change 1230801. To unsubscribe, or for help writing mail filters, visit settings.