Skip to content

Commit

Permalink
Add stx_dio_mem_align and stx_dio_offset_align field in statx
Browse files Browse the repository at this point in the history
  • Loading branch information
ETKNeil committed Jan 20, 2023
1 parent fc599f3 commit df4f6b9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion libc-test/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3609,12 +3609,12 @@ fn test_linux(target: &str) {
| "NFULA_VLAN_UNSPEC" // v5.4+
| "RTNLGRP_NEXTHOP" // linux v5.3+
| "RTNLGRP_BRVLAN" // linux v5.6+
| "STATX_DIOALIGN" // linux v6.1+
if musl || sparc64 => true,

// FIXME: Unignore once we update Ubuntu to 22.04
| "VMADDR_CID_LOCAL"
| "STATX_MNT_ID"
| "STATX_DIOALIGN" // linux v6.1+
| "SYS_close_range"
| "SYS_openat2"
| "SYS_pidfd_getfd"
Expand Down
1 change: 0 additions & 1 deletion libc-test/semver/linux-gnu.txt
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,6 @@ STATX_BASIC_STATS
STATX_BLOCKS
STATX_BTIME
STATX_CTIME
STATX_DIOALIGN
STATX_GID
STATX_INO
STATX_MNT_ID
Expand Down
3 changes: 2 additions & 1 deletion src/unix/linux_like/linux/gnu/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ s! {
pub stx_dev_major: u32,
pub stx_dev_minor: u32,
pub stx_mnt_id: u64,
__statx_pad2: u64,
pub stx_dio_mem_align: u32,
pub stx_dio_offset_align: u32,
__statx_pad3: [u64; 12],
}

Expand Down

0 comments on commit df4f6b9

Please sign in to comment.