diff options
| author | Khem Raj <raj.khem@gmail.com> | 2022-08-14 13:37:33 -0700 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2022-08-14 13:39:16 -0700 |
| commit | c1d5aa46109995c733e29dc6c9fa9efb57749ec0 (patch) | |
| tree | 4c9737167dd5ba1bedb1d8970e923756a5e637cf /meta-filesystems | |
| parent | 09dd36bedf02660c43c134bc1987ba981c175a6e (diff) | |
| download | meta-openembedded-c1d5aa46109995c733e29dc6c9fa9efb57749ec0.tar.gz | |
xfstests: Upgrade to 2022.07.31 release
Rename recipe to reflect version number
Add patches to build with glibc 2.36
Disable one test namely detached_mounts_propagation
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-filesystems')
| -rw-r--r-- | meta-filesystems/recipes-utils/xfstests/xfstests/0001-Add-a-return-type-to-aio_rw.patch | 28 | ||||
| -rw-r--r-- | meta-filesystems/recipes-utils/xfstests/xfstests/0002-Drop-detached_mounts_propagation-and-remove-sys-moun.patch | 47 | ||||
| -rw-r--r-- | meta-filesystems/recipes-utils/xfstests/xfstests_2022.07.31.bb (renamed from meta-filesystems/recipes-utils/xfstests/xfstests_git.bb) | 5 |
3 files changed, 79 insertions, 1 deletions
diff --git a/meta-filesystems/recipes-utils/xfstests/xfstests/0001-Add-a-return-type-to-aio_rw.patch b/meta-filesystems/recipes-utils/xfstests/xfstests/0001-Add-a-return-type-to-aio_rw.patch new file mode 100644 index 0000000000..e0a04c9073 --- /dev/null +++ b/meta-filesystems/recipes-utils/xfstests/xfstests/0001-Add-a-return-type-to-aio_rw.patch | |||
| @@ -0,0 +1,28 @@ | |||
| 1 | From f172ea004d34b00aa7bd5baff9422b2ab80df6e7 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Sun, 14 Aug 2022 13:32:10 -0700 | ||
| 4 | Subject: [PATCH 1/2] Add a return type to aio_rw | ||
| 5 | |||
| 6 | Compilers complain about the function prototype otherwise | ||
| 7 | |||
| 8 | Upstream-Status: Pending | ||
| 9 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 10 | --- | ||
| 11 | ltp/fsx.c | 1 + | ||
| 12 | 1 file changed, 1 insertion(+) | ||
| 13 | |||
| 14 | diff --git a/ltp/fsx.c b/ltp/fsx.c | ||
| 15 | index 12c2cc33..55b4e9b6 100644 | ||
| 16 | --- a/ltp/fsx.c | ||
| 17 | +++ b/ltp/fsx.c | ||
| 18 | @@ -2429,6 +2429,7 @@ out_error: | ||
| 19 | return -1; | ||
| 20 | } | ||
| 21 | #else | ||
| 22 | +int | ||
| 23 | aio_rw(int rw, int fd, char *buf, unsigned len, unsigned offset) | ||
| 24 | { | ||
| 25 | fprintf(stderr, "io_rw: need AIO support!\n"); | ||
| 26 | -- | ||
| 27 | 2.37.2 | ||
| 28 | |||
diff --git a/meta-filesystems/recipes-utils/xfstests/xfstests/0002-Drop-detached_mounts_propagation-and-remove-sys-moun.patch b/meta-filesystems/recipes-utils/xfstests/xfstests/0002-Drop-detached_mounts_propagation-and-remove-sys-moun.patch new file mode 100644 index 0000000000..a594b73a12 --- /dev/null +++ b/meta-filesystems/recipes-utils/xfstests/xfstests/0002-Drop-detached_mounts_propagation-and-remove-sys-moun.patch | |||
| @@ -0,0 +1,47 @@ | |||
| 1 | From dd43cbc7f50266cdc6210f2b920d7f648a83bdd6 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Sun, 14 Aug 2022 13:33:05 -0700 | ||
| 4 | Subject: [PATCH 2/2] Drop detached_mounts_propagation and remove sys/mount.h | ||
| 5 | from vfs/utils.c | ||
| 6 | |||
| 7 | with glibc 2.36+ sys/mount.h conflicts with linux/mount.h and here | ||
| 8 | linux/mount.h is included via xfs/xfs.h header and we need sys/mount.h | ||
| 9 | for the mount() API prototype. Until thats resolved lets not build this | ||
| 10 | testcase | ||
| 11 | |||
| 12 | Upstream-Status: Inappropriate [Libc specific Workaround] | ||
| 13 | |||
| 14 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 15 | --- | ||
| 16 | src/Makefile | 2 +- | ||
| 17 | src/vfs/utils.c | 1 - | ||
| 18 | 2 files changed, 1 insertion(+), 2 deletions(-) | ||
| 19 | |||
| 20 | diff --git a/src/Makefile b/src/Makefile | ||
| 21 | index 665edcf9..7debcbbd 100644 | ||
| 22 | --- a/src/Makefile | ||
| 23 | +++ b/src/Makefile | ||
| 24 | @@ -31,7 +31,7 @@ LINUX_TARGETS = xfsctl bstat t_mtab getdevicesize preallo_rw_pattern_reader \ | ||
| 25 | dio-invalidate-cache stat_test t_encrypted_d_revalidate \ | ||
| 26 | attr_replace_test swapon mkswap t_attr_corruption t_open_tmpfiles \ | ||
| 27 | fscrypt-crypt-util bulkstat_null_ocount splice-test chprojid_fail \ | ||
| 28 | - detached_mounts_propagation ext4_resize t_readdir_3 splice2pipe \ | ||
| 29 | + ext4_resize t_readdir_3 splice2pipe \ | ||
| 30 | uuid_ioctl | ||
| 31 | |||
| 32 | EXTRA_EXECS = dmerror fill2attr fill2fs fill2fs_check scaleread.sh \ | ||
| 33 | diff --git a/src/vfs/utils.c b/src/vfs/utils.c | ||
| 34 | index 1388edda..aacd6c0a 100644 | ||
| 35 | --- a/src/vfs/utils.c | ||
| 36 | +++ b/src/vfs/utils.c | ||
| 37 | @@ -10,7 +10,6 @@ | ||
| 38 | #include <stdlib.h> | ||
| 39 | #include <sys/eventfd.h> | ||
| 40 | #include <sys/fsuid.h> | ||
| 41 | -#include <sys/mount.h> | ||
| 42 | #include <sys/prctl.h> | ||
| 43 | #include <sys/socket.h> | ||
| 44 | #include <sys/stat.h> | ||
| 45 | -- | ||
| 46 | 2.37.2 | ||
| 47 | |||
diff --git a/meta-filesystems/recipes-utils/xfstests/xfstests_git.bb b/meta-filesystems/recipes-utils/xfstests/xfstests_2022.07.31.bb index a6fc89d606..647b6fcd73 100644 --- a/meta-filesystems/recipes-utils/xfstests/xfstests_git.bb +++ b/meta-filesystems/recipes-utils/xfstests/xfstests_2022.07.31.bb | |||
| @@ -7,9 +7,11 @@ SRCREV_FORMAT = "xfstests_unionmount" | |||
| 7 | SRC_URI = "\ | 7 | SRC_URI = "\ |
| 8 | git://git.kernel.org/pub/scm/fs/xfs/xfstests-dev.git;branch=master;name=xfstests \ | 8 | git://git.kernel.org/pub/scm/fs/xfs/xfstests-dev.git;branch=master;name=xfstests \ |
| 9 | git://github.com/amir73il/unionmount-testsuite.git;branch=master;protocol=https;name=unionmount;destsuffix=unionmount-testsuite \ | 9 | git://github.com/amir73il/unionmount-testsuite.git;branch=master;protocol=https;name=unionmount;destsuffix=unionmount-testsuite \ |
| 10 | file://0001-Add-a-return-type-to-aio_rw.patch \ | ||
| 11 | file://0002-Drop-detached_mounts_propagation-and-remove-sys-moun.patch \ | ||
| 10 | " | 12 | " |
| 11 | 13 | ||
| 12 | SRCREV_xfstests = "47ed066309716c73a97fff9b7f557f72d90bffb4" | 14 | SRCREV_xfstests = "b91889d79e1d92e22860504e40108a2e4d054c33" |
| 13 | SRCREV_unionmount = "e3825b16b46f4c4574a1a69909944c059835f914" | 15 | SRCREV_unionmount = "e3825b16b46f4c4574a1a69909944c059835f914" |
| 14 | 16 | ||
| 15 | S = "${WORKDIR}/git" | 17 | S = "${WORKDIR}/git" |
| @@ -24,6 +26,7 @@ RDEPENDS:${PN} += "\ | |||
| 24 | e2fsprogs \ | 26 | e2fsprogs \ |
| 25 | e2fsprogs-tune2fs \ | 27 | e2fsprogs-tune2fs \ |
| 26 | e2fsprogs-resize2fs \ | 28 | e2fsprogs-resize2fs \ |
| 29 | libaio \ | ||
| 27 | libcap-bin \ | 30 | libcap-bin \ |
| 28 | overlayfs-progs \ | 31 | overlayfs-progs \ |
| 29 | perl \ | 32 | perl \ |
