-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Update statx constants and types (Linux 6.8-6.14) #4401
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -418,20 +418,25 @@ STATX_ATTR_IMMUTABLE | |
| STATX_ATTR_MOUNT_ROOT | ||
| STATX_ATTR_NODUMP | ||
| STATX_ATTR_VERITY | ||
| STATX_ATTR_WRITE_ATOMIC | ||
| STATX_BASIC_STATS | ||
| STATX_BLOCKS | ||
| STATX_BTIME | ||
| STATX_CTIME | ||
| STATX_DIOALIGN | ||
| STATX_DIO_READ_ALIGN | ||
| STATX_GID | ||
| STATX_INO | ||
| STATX_MNT_ID | ||
| STATX_MNT_ID_UNIQUE | ||
| STATX_MODE | ||
| STATX_MTIME | ||
| STATX_NLINK | ||
| STATX_SIZE | ||
| STATX_SUBVOL | ||
| STATX_TYPE | ||
| STATX_UID | ||
| STATX_WRITE_ATOMIC | ||
|
Comment on lines
+421
to
+439
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These are added to linux-gnu, but should be possible to have in linux-like |
||
| STATX__RESERVED | ||
| STA_CLK | ||
| STA_CLOCKERR | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -292,7 +292,12 @@ cfg_if! { | |
| pub stx_mnt_id: crate::__u64, | ||
| pub stx_dio_mem_align: crate::__u32, | ||
| pub stx_dio_offset_align: crate::__u32, | ||
| __statx_pad3: Padding<[crate::__u64; 12]>, | ||
| pub stx_subvol: crate::__u64, | ||
| pub stx_atomic_write_unit_min: crate::__u32, | ||
| pub stx_atomic_write_unit_max: crate::__u32, | ||
| pub stx_atomic_write_segments_max: crate::__u32, | ||
| pub stx_dio_read_offset_align: crate::__u32, | ||
| __statx_pad3: Padding<[crate::__u64; 9]>, | ||
| } | ||
|
|
||
| pub struct statx_timestamp { | ||
|
|
@@ -1683,6 +1688,10 @@ cfg_if! { | |
| pub const STATX_ALL: c_uint = 0x0fff; | ||
| pub const STATX_MNT_ID: c_uint = 0x1000; | ||
| pub const STATX_DIOALIGN: c_uint = 0x2000; | ||
| pub const STATX_MNT_ID_UNIQUE: c_uint = 0x4000; | ||
| pub const STATX_SUBVOL: c_uint = 0x_0000_8000; | ||
| pub const STATX_WRITE_ATOMIC: c_uint = 0x_0001_0000; | ||
| pub const STATX_DIO_READ_ALIGN: c_uint = 0x_0002_0000; | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This constant is not yet present in bionic, likely because it was introduced to Linux in 6.14, and the latest Android kernel is 6.12. |
||
| pub const STATX__RESERVED: c_int = 0x80000000; | ||
| pub const STATX_ATTR_COMPRESSED: c_int = 0x0004; | ||
| pub const STATX_ATTR_IMMUTABLE: c_int = 0x0010; | ||
|
|
@@ -1693,6 +1702,7 @@ cfg_if! { | |
| pub const STATX_ATTR_MOUNT_ROOT: c_int = 0x2000; | ||
| pub const STATX_ATTR_VERITY: c_int = 0x100000; | ||
| pub const STATX_ATTR_DAX: c_int = 0x200000; | ||
| pub const STATX_ATTR_WRITE_ATOMIC: c_int = 0x400000; | ||
| } | ||
| } | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add
if gnuand something like// FIXME(ci): pinned glibc testsso we can clean these up once CI is resolved