.. | .. |
---|
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 | 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 */ |
---|
151 | | -#define STATX_ALL 0x00000fffU /* All currently supported flags */ |
---|
| 154 | +#define STATX_MNT_ID 0x00001000U /* Got stx_mnt_id */ |
---|
| 155 | + |
---|
152 | 156 | #define STATX__RESERVED 0x80000000U /* Reserved for future struct statx expansion */ |
---|
| 157 | + |
---|
| 158 | +#ifndef __KERNEL__ |
---|
| 159 | +/* |
---|
| 160 | + * This is deprecated, and shall remain the same value in the future. To avoid |
---|
| 161 | + * confusion please use the equivalent (STATX_BASIC_STATS | STATX_BTIME) |
---|
| 162 | + * instead. |
---|
| 163 | + */ |
---|
| 164 | +#define STATX_ALL 0x00000fffU |
---|
| 165 | +#endif |
---|
153 | 166 | |
---|
154 | 167 | /* |
---|
155 | 168 | * Attributes to be found in stx_attributes and masked in stx_attributes_mask. |
---|
.. | .. |
---|
158 | 171 | * be of use to ordinary userspace programs such as GUIs or ls rather than |
---|
159 | 172 | * specialised tools. |
---|
160 | 173 | * |
---|
161 | | - * Note that the flags marked [I] correspond to generic FS_IOC_FLAGS |
---|
| 174 | + * Note that the flags marked [I] correspond to the FS_IOC_SETFLAGS flags |
---|
162 | 175 | * semantically. Where possible, the numerical value is picked to correspond |
---|
163 | | - * also. |
---|
| 176 | + * also. Note that the DAX attribute indicates that the file is in the CPU |
---|
| 177 | + * direct access state. It does not correspond to the per-inode flag that |
---|
| 178 | + * some filesystems support. |
---|
| 179 | + * |
---|
164 | 180 | */ |
---|
165 | 181 | #define STATX_ATTR_COMPRESSED 0x00000004 /* [I] File is compressed by the fs */ |
---|
166 | 182 | #define STATX_ATTR_IMMUTABLE 0x00000010 /* [I] File is marked immutable */ |
---|
.. | .. |
---|
168 | 184 | #define STATX_ATTR_NODUMP 0x00000040 /* [I] File is not to be dumped */ |
---|
169 | 185 | #define STATX_ATTR_ENCRYPTED 0x00000800 /* [I] File requires key to decrypt in fs */ |
---|
170 | 186 | #define STATX_ATTR_AUTOMOUNT 0x00001000 /* Dir: Automount trigger */ |
---|
| 187 | +#define STATX_ATTR_MOUNT_ROOT 0x00002000 /* Root of a mount */ |
---|
171 | 188 | #define STATX_ATTR_VERITY 0x00100000 /* [I] Verity protected file */ |
---|
| 189 | +#define STATX_ATTR_DAX 0x00200000 /* File is currently in DAX state */ |
---|
172 | 190 | |
---|
173 | 191 | |
---|
174 | 192 | #endif /* _UAPI_LINUX_STAT_H */ |
---|