History

statx: add mount ID

Systemd is hacking around to get it and it's trivial to add to statx, so...

Miklos Szeredi committed 6 years ago

Commit fa2fcf41 parent 761e28f3 files · +10 −1Browse files

Showing the changes to include/uapi/linux (1 of 3 files). Show all

Unified · Split

include/uapi/linux/stat.h+5−1
@@ -123,7 +123,10 @@ struct statx { · 122 unmodified lines
123 __u32 stx_dev_major; /* ID of device containing file [uncond] */123 __u32 stx_dev_major; /* ID of device containing file [uncond] */
124 __u32 stx_dev_minor;124 __u32 stx_dev_minor;
125 /* 0x90 */125 /* 0x90 */
126 __u64 __spare2[14]; /* Spare space for future expansion */126 __u64 stx_mnt_id;
127 __u64 __spare2;
128 /* 0xa0 */
129 __u64 __spare3[12]; /* Spare space for future expansion */
127 /* 0x100 */130 /* 0x100 */
128};131};
129 132
@@ -148,6 +151,7 @@ struct statx { · 18 unmodified lines
148#define STATX_BLOCKS 0x00000400U /* Want/got stx_blocks */151#define STATX_BLOCKS 0x00000400U /* Want/got stx_blocks */
149#define STATX_BASIC_STATS 0x000007ffU /* The stuff in the normal stat struct */152#define STATX_BASIC_STATS 0x000007ffU /* The stuff in the normal stat struct */
150#define STATX_BTIME 0x00000800U /* Want/got stx_btime */153#define STATX_BTIME 0x00000800U /* Want/got stx_btime */
154#define STATX_MNT_ID 0x00001000U /* Got stx_mnt_id */
151 155
152#define STATX__RESERVED 0x80000000U /* Reserved for future struct statx expansion */156#define STATX__RESERVED 0x80000000U /* Reserved for future struct statx expansion */
153 157