mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 04:33:26 +02:00
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>
This commit is contained in:
@@ -527,6 +527,7 @@ cp_statx(const struct kstat *stat, struct statx __user *buffer)
|
||||
tmp.stx_ino = stat->ino;
|
||||
tmp.stx_size = stat->size;
|
||||
tmp.stx_blocks = stat->blocks;
|
||||
tmp.stx_attributes_mask = stat->attributes_mask;
|
||||
tmp.stx_atime.tv_sec = stat->atime.tv_sec;
|
||||
tmp.stx_atime.tv_nsec = stat->atime.tv_nsec;
|
||||
tmp.stx_btime.tv_sec = stat->btime.tv_sec;
|
||||
|
Reference in New Issue
Block a user