* [musl] [PATCH] statx: add Linux 6.11 fields/constants
@ 2024-10-23 23:19 J. Neuschäfer
0 siblings, 0 replies; only message in thread
From: J. Neuschäfer @ 2024-10-23 23:19 UTC (permalink / raw)
To: musl; +Cc: J. Neuschäfer
As of Linux 6.11, these fields and mask macros have been added to
include/uapi/linux/stat.h.
---
Signed-off-by: J. Neuschäfer <j.neuschaefer@gmx.net>
---
include/sys/stat.h | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/include/sys/stat.h b/include/sys/stat.h
index c924ce2f1e5cc5755f98082f1b6ebe5ea2226f34..4f7dc2b1082c2e202600a064efae2dfab108bdd0 100644
--- a/include/sys/stat.h
+++ b/include/sys/stat.h
@@ -123,6 +123,8 @@ int lchmod(const char *, mode_t);
#define STATX_MNT_ID 0x1000U
#define STATX_DIOALIGN 0x2000U
#define STATX_MNT_ID_UNIQUE 0x4000U
+#define STATX_SUBVOL 0x8000U
+#define STATX_WRITE_ATOMIC 0x10000U
#define STATX_ATTR_COMPRESSED 0x4
#define STATX_ATTR_IMMUTABLE 0x10
@@ -133,6 +135,7 @@ int lchmod(const char *, mode_t);
#define STATX_ATTR_MOUNT_ROOT 0x2000
#define STATX_ATTR_VERITY 0x100000
#define STATX_ATTR_DAX 0x200000
+#define STATX_ATTR_WRITE_ATOMIC 0x400000
struct statx_timestamp {
int64_t tv_sec;
@@ -164,7 +167,12 @@ struct statx {
uint32_t stx_dio_mem_align;
uint32_t stx_dio_offset_align;
uint64_t stx_subvol;
- uint64_t __pad1[11];
+ uint32_t stx_atomic_write_unit_min;
+ uint32_t stx_atomic_write_unit_max;
+ uint32_t stx_atomic_write_segments_max;
+ uint32_t __pad1[1];
+ uint64_t __pad2[9];
+
};
int statx(int, const char *__restrict, int, unsigned, struct statx *__restrict);
---
base-commit: 047a16398b29d2702a41a0d6d15370d54b9d723c
change-id: 20241024-statx-6-11-dbca660d8b66
Best regards,
--
J. Neuschäfer <j.neuschaefer@gmx.net>
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-10-23 23:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-10-23 23:19 [musl] [PATCH] statx: add Linux 6.11 fields/constants J. Neuschäfer
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/musl/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).