diff options
author | David Howells <dhowells@redhat.com> | 2017-03-31 13:32:17 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2017-04-03 01:06:00 -0400 |
commit | 3209f68b3ca4667069923a325c88b21131bfdf9f (patch) | |
tree | 28807921a600cc5fd1ede24fcac669f0f0b2e994 /fs/stat.c | |
parent | 47071aee6a1956524b9929b3b821f6d2f8cae23c (diff) |
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>
Diffstat (limited to 'fs/stat.c')
-rw-r--r-- | fs/stat.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -527,6 +527,7 @@ cp_statx(const struct kstat *stat, struct statx __user *buffer) | |||
527 | tmp.stx_ino = stat->ino; | 527 | tmp.stx_ino = stat->ino; |
528 | tmp.stx_size = stat->size; | 528 | tmp.stx_size = stat->size; |
529 | tmp.stx_blocks = stat->blocks; | 529 | tmp.stx_blocks = stat->blocks; |
530 | tmp.stx_attributes_mask = stat->attributes_mask; | ||
530 | tmp.stx_atime.tv_sec = stat->atime.tv_sec; | 531 | tmp.stx_atime.tv_sec = stat->atime.tv_sec; |
531 | tmp.stx_atime.tv_nsec = stat->atime.tv_nsec; | 532 | tmp.stx_atime.tv_nsec = stat->atime.tv_nsec; |
532 | tmp.stx_btime.tv_sec = stat->btime.tv_sec; | 533 | tmp.stx_btime.tv_sec = stat->btime.tv_sec; |