Skip to content

Commit 9ac3659

Browse files
neuschaeferDorianNiemiecSVRJS
authored andcommitted
Add Linux 6.11 statx fields/constants
1 parent a5eab58 commit 9ac3659

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/unix/linux_like/mod.rs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,12 @@ cfg_if! {
234234
pub stx_mnt_id: crate::__u64,
235235
pub stx_dio_mem_align: crate::__u32,
236236
pub stx_dio_offset_align: crate::__u32,
237-
__statx_pad3: [crate::__u64; 12],
237+
pub stx_subvol: crate::__u64,
238+
pub stx_atomic_write_unit_min: crate::__u32,
239+
pub stx_atomic_write_unit_max: crate::__u32,
240+
pub stx_atomic_write_segments_max: crate::__u32,
241+
__statx_pad2: [crate::__u32; 1],
242+
__statx_pad3: [crate::__u64; 9],
238243
}
239244

240245
pub struct statx_timestamp {
@@ -1618,6 +1623,9 @@ cfg_if! {
16181623
pub const STATX_ALL: c_uint = 0x0fff;
16191624
pub const STATX_MNT_ID: c_uint = 0x1000;
16201625
pub const STATX_DIOALIGN: c_uint = 0x2000;
1626+
pub const STATX_MNT_ID_UNIQUE: c_uint = 0x4000;
1627+
pub const STATX_SUBVOL: c_uint = 0x8000;
1628+
pub const STATX_WRITE_ATOMIC: c_uint = 0x10000;
16211629
pub const STATX__RESERVED: c_int = 0x80000000;
16221630
pub const STATX_ATTR_COMPRESSED: c_int = 0x0004;
16231631
pub const STATX_ATTR_IMMUTABLE: c_int = 0x0010;
@@ -1628,6 +1636,7 @@ cfg_if! {
16281636
pub const STATX_ATTR_MOUNT_ROOT: c_int = 0x2000;
16291637
pub const STATX_ATTR_VERITY: c_int = 0x100000;
16301638
pub const STATX_ATTR_DAX: c_int = 0x200000;
1639+
pub const STATX_ATTR_WRITE_ATOMIC: c_int = 0x400000;
16311640
}
16321641
}
16331642

0 commit comments

Comments
 (0)