Systemd is hacking around to get it and it's trivial to add to statx, so...
Showing the changes to include/uapi/linux (1 of 3 files). Show all
Unified · Split
| @@ -123,7 +123,10 @@ struct statx { · 122 unmodified lines | ||
| 123 | 123 | __u32 stx_dev_major; /* ID of device containing file [uncond] */ |
| 124 | 124 | __u32 stx_dev_minor; |
| 125 | 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 | 130 | /* 0x100 */ |
| 128 | 131 | }; |
| 129 | 132 | |
| @@ -148,6 +151,7 @@ struct statx { · 18 unmodified lines | ||
| 148 | 151 | #define STATX_BLOCKS 0x00000400U /* Want/got stx_blocks */ |
| 149 | 152 | #define STATX_BASIC_STATS 0x000007ffU /* The stuff in the normal stat struct */ |
| 150 | 153 | #define STATX_BTIME 0x00000800U /* Want/got stx_btime */ |
| 154 | +#define STATX_MNT_ID 0x00001000U /* Got stx_mnt_id */ | |
| 151 | 155 | |
| 152 | 156 | #define STATX__RESERVED 0x80000000U /* Reserved for future struct statx expansion */ |
| 153 | 157 | |