statx: Include a mask for stx_attributes in struct statx
authorDavid Howells <dhowells@redhat.com>
Fri, 31 Mar 2017 17:32:17 +0000 (18:32 +0100)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 3 Apr 2017 05:06:00 +0000 (01:06 -0400)
commit3209f68b3ca4667069923a325c88b21131bfdf9f
tree28807921a600cc5fd1ede24fcac669f0f0b2e994
parent47071aee6a1956524b9929b3b821f6d2f8cae23c
statx: Include a mask for stx_attributes in struct statx

Include a mask in struct stat to indicate which bits of stx_attributes the
filesystem actually supports.

This would also be useful if we add another system call that allows you to
do a 'bulk attribute set' and pass in a statx struct with the masks
appropriately set to say what you want to set.

Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/ext4/inode.c
fs/stat.c
include/linux/stat.h
include/uapi/linux/stat.h
samples/statx/test-statx.c