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)
commitdff25ddb48086afcb434770caa3d6849a4489b85
tree5072c5bf9d907cabcfa354e7c100d0302b10cb36
parentd9152114f7c9abb096275b72db8527c004d57bf9
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