Skip to content

Commit

Permalink
Add Linux 6.11 statx fields/constants
Browse files Browse the repository at this point in the history
  • Loading branch information
neuschaefer committed Nov 30, 2024
1 parent d76b3c8 commit 9e861d6
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/unix/linux_like/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,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: [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,
__statx_pad2: [crate::__u32; 1],
__statx_pad3: [crate::__u64; 9],
}

pub struct statx_timestamp {
Expand Down Expand Up @@ -1593,6 +1598,9 @@ 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 = 0x8000;
pub const STATX_WRITE_ATOMIC: c_uint = 0x10000;
pub const STATX__RESERVED: c_int = 0x80000000;
pub const STATX_ATTR_COMPRESSED: c_int = 0x0004;
pub const STATX_ATTR_IMMUTABLE: c_int = 0x0010;
Expand All @@ -1603,6 +1611,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;
}
}

Expand Down

0 comments on commit 9e861d6

Please sign in to comment.