path: root/extras/
diff options
authorNiels de Vos <>2014-09-29 20:03:58 +0200
committerNiels de Vos <>2014-10-02 00:24:36 -0700
commitf2131b8c79641c1bf9e20657757bcc9a62a0625a (patch)
tree7511e8da0d8e6216b5be619ac1118d00254a1c1b /extras/
parent0e1419d6fbf008b6384236d6103066afbc92dd77 (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 <> Reviewed-on: Tested-by: Gluster Build System <> Reviewed-by: Kaleb KEITHLEY <> Reviewed-by: soumya k <>
Diffstat (limited to 'extras/')
0 files changed, 0 insertions, 0 deletions