From b5d92f34a40b03678c54fe6e9272ba43aa5615f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=2E=20Neusch=C3=A4fer?= Date: Wed, 16 Oct 2024 18:58:47 +0200 Subject: [PATCH] Add Linux 6.11 statx fields/constants --- src/unix/linux_like/mod.rs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/unix/linux_like/mod.rs b/src/unix/linux_like/mod.rs index 4c2dfb4cee98..03461ff09709 100644 --- a/src/unix/linux_like/mod.rs +++ b/src/unix/linux_like/mod.rs @@ -232,7 +232,12 @@ cfg_if! { pub stx_mnt_id: ::__u64, pub stx_dio_mem_align: ::__u32, pub stx_dio_offset_align: ::__u32, - __statx_pad3: [::__u64; 12], + pub stx_subvol: ::__u64, + pub stx_atomic_write_unit_min: ::__u32, + pub stx_atomic_write_unit_max: ::__u32, + pub stx_atomic_write_segments_max: ::__u32, + __statx_pad2: [::__u32; 1], + __statx_pad3: [::__u64; 9], } pub struct statx_timestamp { @@ -1590,6 +1595,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; @@ -1600,6 +1608,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; } }