diff options
author | Niels de Vos <ndevos@redhat.com> | 2014-09-29 20:03:58 +0200 |
---|---|---|
committer | Niels de Vos <ndevos@redhat.com> | 2014-10-02 00:24:36 -0700 |
commit | f2131b8c79641c1bf9e20657757bcc9a62a0625a (patch) | |
tree | 7511e8da0d8e6216b5be619ac1118d00254a1c1b /README | |
parent | 0e1419d6fbf008b6384236d6103066afbc92dd77 (diff) |
gNFS: allow truncate() from SETATTR over NFS for owner
NFSv3 does not have a TRUNCATE procedure, instead it is part of the
SETATTR (change the 'size' attribute). SETATTR with a new 'size'
succeeds on other NFS-servers, even when the owner of the file does not
have write permissions. Make Gluster/NFS behave the same way, by
checking if the RPC/pid comes from the NFS-server, and allow truncate()
when the file is owned by the user calling SETATTR.
BUG: 955753
Change-Id: I4b7cb8efe5a2032c6cd2eef6af610032f76d8b39
Signed-off-by: Niels de Vos <ndevos@redhat.com>
Reviewed-on: http://review.gluster.org/8889
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Kaleb KEITHLEY <kkeithle@redhat.com>
Reviewed-by: soumya k <skoduri@redhat.com>
Diffstat (limited to 'README')
0 files changed, 0 insertions, 0 deletions