On 5/31/19 1:55 PM, Soumya Koduri wrote:
 
 
 On 5/31/19 4:30 AM, QR wrote:
> We cannot decompress this file with gluster FSAL, but vfs FSAL and 
> kernel nfs can.
> Is anyone know about this?
> Thanks in advance.
>
> [qr@nfs-ganesha perm]$ tar xzf /tmp/perm/444.tgz
> tar: big1.hdr: Cannot close: Permission denied
> tar: Exiting with failure status due to previous errors
> [qr@nfs-ganesha perm]$ tar tvf /tmp/perm/444.tgz
> -r--r--r-- qr/qr             4 2019-05-30 11:25 big1.hdr
>
 
 It could be similar to the issue mentioned in [1]. Will check and confirm. 
I couldn't reproduce this issue. What is the OS version of the server 
and client machines? Also please check if there are any errors in 
ganesha.log, ganesha-gfapi.log and brick logs. Most probably you are 
hitting the issues discussed in [1].
The problem is that unlike most of the other FSALs in FSAL_GLUSTER we 
switch to user credentials before performing any operations on the 
backend file system [these changes were done to be able to run 
nfs-ganesha by a non-root user]
The side-effect is that though first time the fd is opened as part of 
NFSv4.x client OPEN call, NFS-ganesha server may need to re-open the 
file to get additional fds to perform certain other operations like 
COMMIT, LOCK/LEASE and glusterfs doesn't grant RW access to those fds 
(as expected).
Not sure if there is a clean way of fixing it. In [1], the author tried 
to workaround the problem by switching to root user if the ganesha 
process ID is also root. That means this issue will still remain if the 
ganesha process is started by a non-root user.
@Frank,
any thoughts?
Thanks,
Soumya
> 
> Thanks,
> Soumya
> 
> [1] 
https://review.gerrithub.io/c/ffilz/nfs-ganesha/+/447012
> 
>> Ganesha server info
>>      ganesha version: a3c6fa39ce72682049391b7e094885a8c151b0c8(V2.8-rc1)
>>      FSAL           : gluster
>> nfs client info
>>      nfs version    : nfs4.0
>>      mount options  : 
>>
rw,relatime,vers=4.0,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,port=0,timeo=600,retrans=2,sec=sys,clientaddr=XXX,local_lock=none,addr=YYY
>>
>>
>> _______________________________________________
>> Devel mailing list -- devel(a)lists.nfs-ganesha.org
>> To unsubscribe send an email to devel-leave(a)lists.nfs-ganesha.org
>>
> _______________________________________________
> Devel mailing list -- devel(a)lists.nfs-ganesha.org
> To unsubscribe send an email to devel-leave(a)lists.nfs-ganesha.org