summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry V. Levin <ldv@strace.io>2022-12-11 08:00:00 +0000
committerDmitry V. Levin <ldv@strace.io>2022-12-11 08:00:00 +0000
commitd3feb8d8ebc524cb1c77234449f2cbc1a9e3de0e (patch)
treef8b0cc13b4739534002c2b5d3acd944362a11ea8
parentcc8f44dbba78c7364b466af5d5a2d6fbcf362c8e (diff)
downloadstrace-d3feb8d8ebc524cb1c77234449f2cbc1a9e3de0e.tar.gz
xlat: update STATX_* constants
* src/xlat/statx_masks.in (STATX_DIOALIGN): New constant introduced by Linux kernel commit v6.1-rc1~187^2~7. * tests/xstatx.c (main): Update expected output. * NEWS: Mention this change.
-rw-r--r--NEWS2
-rw-r--r--src/xlat/statx_masks.in1
-rw-r--r--tests/xstatx.c4
3 files changed, 4 insertions, 3 deletions
diff --git a/NEWS b/NEWS
index ee6d3308a..f4dc5ba54 100644
--- a/NEWS
+++ b/NEWS
@@ -4,7 +4,7 @@ Noteworthy changes in release ?.? (????-??-??)
* Improvements
* Enhanced decoding of terminal ioctl commands.
* Updated lists of ABS_*, BPF_*, BTRFS_*, COUNTER_*, ETH_P_*, IFLA_*,
- KVM_*, MADV_*, NLMSGERR_*, and PERF_* constants.
+ KVM_*, MADV_*, NLMSGERR_*, PERF_*, and STATX_* constants.
* Updated lists of ioctl commands from Linux 6.1.
* Bug fixes
diff --git a/src/xlat/statx_masks.in b/src/xlat/statx_masks.in
index 3438672bb..74a89a700 100644
--- a/src/xlat/statx_masks.in
+++ b/src/xlat/statx_masks.in
@@ -14,3 +14,4 @@ STATX_SIZE 0x00000200U
STATX_BLOCKS 0x00000400U
STATX_BTIME 0x00000800U
STATX_MNT_ID 0x00001000U
+STATX_DIOALIGN 0x00002000U
diff --git a/tests/xstatx.c b/tests/xstatx.c
index 4454bbd07..3c8b07e40 100644
--- a/tests/xstatx.c
+++ b/tests/xstatx.c
@@ -476,12 +476,12 @@ main(void)
TEST_SYSCALL_STATX_FLAGS_STR = old_flags_str;
SET_MASK_INVOKE(0, "0");
- SET_MASK_INVOKE(0xffffe000U, "0xffffe000 /* STATX_??? */");
+ SET_MASK_INVOKE(0xffffc000U, "0xffffc000 /* STATX_??? */");
SET_MASK_INVOKE(0xfffffffbU,
"STATX_TYPE|STATX_MODE|STATX_UID|STATX_GID|STATX_ATIME|"
"STATX_MTIME|STATX_CTIME|STATX_INO|STATX_SIZE|STATX_BLOCKS|"
- "STATX_BTIME|STATX_MNT_ID|0xffffe000");
+ "STATX_BTIME|STATX_MNT_ID|STATX_DIOALIGN|0xffffc000");
SET_MASK_INVOKE(STATX_UID, "STATX_UID");