diff options
author | Miklos Szeredi <mszeredi@redhat.com> | 2020-05-14 17:44:24 +0300 |
---|---|---|
committer | Miklos Szeredi <mszeredi@redhat.com> | 2020-05-14 17:44:24 +0300 |
commit | fa2fcf4f1df1559a0a4ee0f46915b496cc2ebf60 (patch) | |
tree | d25e1c625ea59a128dc263d18b653986498f0806 /include/uapi/linux/stat.h | |
parent | 761e28fa270a3cc0f2ae9a0f4f778239b91a9df2 (diff) | |
download | linux-fa2fcf4f1df1559a0a4ee0f46915b496cc2ebf60.tar.xz |
statx: add mount ID
Systemd is hacking around to get it and it's trivial to add to statx, so...
Cc: linux-api@vger.kernel.org
Cc: linux-man@vger.kernel.org
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'include/uapi/linux/stat.h')
-rw-r--r-- | include/uapi/linux/stat.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/uapi/linux/stat.h b/include/uapi/linux/stat.h index d1192783139a..d81456247f10 100644 --- a/include/uapi/linux/stat.h +++ b/include/uapi/linux/stat.h @@ -123,7 +123,10 @@ struct statx { __u32 stx_dev_major; /* ID of device containing file [uncond] */ __u32 stx_dev_minor; /* 0x90 */ - __u64 __spare2[14]; /* Spare space for future expansion */ + __u64 stx_mnt_id; + __u64 __spare2; + /* 0xa0 */ + __u64 __spare3[12]; /* Spare space for future expansion */ /* 0x100 */ }; @@ -148,6 +151,7 @@ struct statx { #define STATX_BLOCKS 0x00000400U /* Want/got stx_blocks */ #define STATX_BASIC_STATS 0x000007ffU /* The stuff in the normal stat struct */ #define STATX_BTIME 0x00000800U /* Want/got stx_btime */ +#define STATX_MNT_ID 0x00001000U /* Got stx_mnt_id */ #define STATX__RESERVED 0x80000000U /* Reserved for future struct statx expansion */ |