Skip to content

Commit 23ad220

Browse files
committed
Add Linux 6.11 statx fields/constants
1 parent c3bc406 commit 23ad220

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/unix/linux_like/linux_statx.rs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,12 @@ s! {
2323
pub stx_mnt_id: ::__u64,
2424
pub stx_dio_mem_align: ::__u32,
2525
pub stx_dio_offset_align: ::__u32,
26-
__statx_pad3: [::__u64; 12],
26+
pub stx_subvol: ::__u64,
27+
pub stx_atomic_write_unit_min: ::__u32,
28+
pub stx_atomic_write_unit_max: ::__u32,
29+
pub stx_atomic_write_segments_max: ::__u32,
30+
__statx_pad2: [::__u32; 1],
31+
__statx_pad3: [::__u64; 9],
2732
}
2833

2934
pub struct statx_timestamp {
@@ -53,6 +58,9 @@ pub const STATX_BTIME: ::c_uint = 0x0800;
5358
pub const STATX_ALL: ::c_uint = 0x0fff;
5459
pub const STATX_MNT_ID: ::c_uint = 0x1000;
5560
pub const STATX_DIOALIGN: ::c_uint = 0x2000;
61+
pub const STATX_MNT_ID_UNIQUE: ::c_uint = 0x4000;
62+
pub const STATX_SUBVOL: ::c_uint = 0x8000;
63+
pub const STATX_WRITE_ATOMIC: ::c_uint = 0x10000;
5664
pub const STATX__RESERVED: ::c_int = 0x80000000;
5765
pub const STATX_ATTR_COMPRESSED: ::c_int = 0x0004;
5866
pub const STATX_ATTR_IMMUTABLE: ::c_int = 0x0010;
@@ -63,6 +71,7 @@ pub const STATX_ATTR_AUTOMOUNT: ::c_int = 0x1000;
6371
pub const STATX_ATTR_MOUNT_ROOT: ::c_int = 0x2000;
6472
pub const STATX_ATTR_VERITY: ::c_int = 0x100000;
6573
pub const STATX_ATTR_DAX: ::c_int = 0x200000;
74+
pub const STATX_ATTR_WRITE_ATOMIC: ::c_int = 0x400000;
6675

6776
extern "C" {
6877
pub fn statx(

0 commit comments

Comments
 (0)