diff options
author | Khem Raj <raj.khem@gmail.com> | 2024-03-25 10:56:46 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2024-03-25 12:50:33 -0700 |
commit | fbbe7cefdd05c5149ce16975ed5ea56e787e419b (patch) | |
tree | 4506393d3138760be4f00cbf9fc954c71bdde84e /meta-filesystems/recipes-utils/xfstests/xfstests/0002-Add-missing-STATX_ATTR_-defines-from-musl-sys-stat.h.patch | |
parent | 025e589575690b74c3fbee5faaefd7babfa4b589 (diff) | |
download | meta-openembedded-fbbe7cefdd05c5149ce16975ed5ea56e787e419b.tar.gz |
xfstests: Fix build with musl >= 1.2.5
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-filesystems/recipes-utils/xfstests/xfstests/0002-Add-missing-STATX_ATTR_-defines-from-musl-sys-stat.h.patch')
-rw-r--r-- | meta-filesystems/recipes-utils/xfstests/xfstests/0002-Add-missing-STATX_ATTR_-defines-from-musl-sys-stat.h.patch | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/meta-filesystems/recipes-utils/xfstests/xfstests/0002-Add-missing-STATX_ATTR_-defines-from-musl-sys-stat.h.patch b/meta-filesystems/recipes-utils/xfstests/xfstests/0002-Add-missing-STATX_ATTR_-defines-from-musl-sys-stat.h.patch new file mode 100644 index 000000000..20095c86a --- /dev/null +++ b/meta-filesystems/recipes-utils/xfstests/xfstests/0002-Add-missing-STATX_ATTR_-defines-from-musl-sys-stat.h.patch | |||
@@ -0,0 +1,42 @@ | |||
1 | From 052818e91314b797d96d87672c60f6784160f935 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Mon, 25 Mar 2024 10:50:59 -0700 | ||
4 | Subject: [PATCH 2/2] Add missing STATX_ATTR_* defines from musl sys/stat.h | ||
5 | |||
6 | These defines are not provided by sys/stat.h on musl but are | ||
7 | in glibc's sys/stat.h, therefore to compile the tests on musl | ||
8 | based systems add the missing defines from linux/stat.h | ||
9 | if they are not provided | ||
10 | |||
11 | Upstream-Status: Submitted [https://lore.kernel.org/fstests/20240325175323.3450750-2-raj.khem@gmail.com/T/#u] | ||
12 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
13 | --- | ||
14 | src/statx.h | 12 ++++++++++++ | ||
15 | 1 file changed, 12 insertions(+) | ||
16 | |||
17 | diff --git a/src/statx.h b/src/statx.h | ||
18 | index 3f239d79..12599f5b 100644 | ||
19 | --- a/src/statx.h | ||
20 | +++ b/src/statx.h | ||
21 | @@ -12,6 +12,18 @@ | ||
22 | #define AT_STATX_DONT_SYNC 0x4000 /* - Don't sync attributes with the server */ | ||
23 | #endif | ||
24 | |||
25 | +#ifndef STATX_ATTR_COMPRESSED | ||
26 | +#define STATX_ATTR_COMPRESSED 0x00000004 /* [I] File is compressed by the fs */ | ||
27 | +#define STATX_ATTR_IMMUTABLE 0x00000010 /* [I] File is marked immutable */ | ||
28 | +#define STATX_ATTR_APPEND 0x00000020 /* [I] File is append-only */ | ||
29 | +#define STATX_ATTR_NODUMP 0x00000040 /* [I] File is not to be dumped */ | ||
30 | +#define STATX_ATTR_ENCRYPTED 0x00000800 /* [I] File requires key to decrypt in fs */ | ||
31 | +#define STATX_ATTR_AUTOMOUNT 0x00001000 /* Dir: Automount trigger */ | ||
32 | +#define STATX_ATTR_MOUNT_ROOT 0x00002000 /* Root of a mount */ | ||
33 | +#define STATX_ATTR_VERITY 0x00100000 /* [I] Verity protected file */ | ||
34 | +#define STATX_ATTR_DAX 0x00200000 /* File is currently in DAX state */ | ||
35 | +#endif | ||
36 | + | ||
37 | #ifndef AT_NO_AUTOMOUNT | ||
38 | #define AT_NO_AUTOMOUNT 0x800 /* Suppress terminal automount traversal */ | ||
39 | #endif | ||
40 | -- | ||
41 | 2.44.0 | ||
42 | |||