]> git.baikalelectronics.ru Git - kernel.git/commit
nfs: add support for the umask attribute
authorAndreas Gruenbacher <agruenba@redhat.com>
Sat, 3 Dec 2016 03:53:30 +0000 (22:53 -0500)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Sat, 10 Dec 2016 04:47:10 +0000 (23:47 -0500)
commit83ba82b8da32c8e8d3890b23b361cc63e4210771
tree5072c5bf9d907cabcfa354e7c100d0302b10cb36
parent8c5802d08eea0cd66e281a35bc708e6dbbdd26c0
nfs: add support for the umask attribute

Clients can set the umask attribute when creating files to cause the
server to apply it always except when inheriting permissions from the
parent directory.  That way, the new files will end up with the same
permissions as files created locally.

See https://tools.ietf.org/html/draft-ietf-nfsv4-umask-02 for more details.

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/dir.c
fs/nfs/nfs4proc.c
fs/nfs/nfs4xdr.c
include/linux/nfs4.h
include/linux/nfs_xdr.h