Skip to content

Add additional fields to statx #4621

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions src/unix/linux_like/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,25 @@ cfg_if! {
pub stx_mnt_id: crate::__u64,
pub stx_dio_mem_align: crate::__u32,
pub stx_dio_offset_align: crate::__u32,
// The following fields are not available on Android as of
// August 6th 2025.
#[cfg(target_os = "linux")]
pub stx_subvol: crate::__u64,
#[cfg(target_os = "linux")]
pub stx_atomic_write_unit_min: crate::__u32,
#[cfg(target_os = "linux")]
pub stx_atomic_write_unit_max: crate::__u32,
#[cfg(target_os = "linux")]
pub stx_atomic_write_segments_max: crate::__u32,
#[cfg(target_os = "linux")]
pub stx_dio_read_offset_align: crate::__u32,
#[cfg(target_os = "linux")]
pub stx_atomic_write_unit_max_opt: crate::__u32,
#[cfg(target_os = "linux")]
__statx_pad2: [crate::__u32; 1],
#[cfg(target_os = "linux")]
__statx_pad3: [crate::__u64; 8],
#[cfg(not(target_os = "linux"))]
__statx_pad3: [crate::__u64; 12],
}

Expand Down
Loading