diff options
author | Mingli Yu <mingli.yu@windriver.com> | 2023-03-17 20:37:42 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-03-22 23:17:27 +0000 |
commit | 20dec1e5271942c2d0d3d10c5b63f9b0b79cc952 (patch) | |
tree | 94b3446c743b70f627a6102c15524f82e0476150 | |
parent | 3a7aa768c5010bf1a63b61d759e136ca8be7917a (diff) | |
download | poky-20dec1e5271942c2d0d3d10c5b63f9b0b79cc952.tar.gz |
mdadm: fix tests/00raid0
Backport patch [1] to fix tests/00raid0.
[1] https://git.kernel.org/pub/scm/utils/mdadm/mdadm.git/commit/?id=7539254342bc591717b0051734cc6c09c1b88640
(From OE-Core rev: baba79874444a9a55e787983a87408e9bc7ebea2)
Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-extended/mdadm/files/0001-tests-00raid0-add-a-test-that-validates-raid0-with-l.patch | 41 | ||||
-rw-r--r-- | meta/recipes-extended/mdadm/mdadm_4.2.bb | 1 |
2 files changed, 42 insertions, 0 deletions
diff --git a/meta/recipes-extended/mdadm/files/0001-tests-00raid0-add-a-test-that-validates-raid0-with-l.patch b/meta/recipes-extended/mdadm/files/0001-tests-00raid0-add-a-test-that-validates-raid0-with-l.patch new file mode 100644 index 0000000000..1c95834a7e --- /dev/null +++ b/meta/recipes-extended/mdadm/files/0001-tests-00raid0-add-a-test-that-validates-raid0-with-l.patch | |||
@@ -0,0 +1,41 @@ | |||
1 | From 7539254342bc591717b0051734cc6c09c1b88640 Mon Sep 17 00:00:00 2001 | ||
2 | From: Sudhakar Panneerselvam <sudhakar.panneerselvam@oracle.com> | ||
3 | Date: Wed, 22 Jun 2022 14:25:13 -0600 | ||
4 | Subject: [PATCH] tests/00raid0: add a test that validates raid0 with layout | ||
5 | fails for 0.9 | ||
6 | |||
7 | 329dfc28debb disallows the creation of raid0 with layouts for 0.9 | ||
8 | metadata. This test confirms the new behavior. | ||
9 | |||
10 | Upstream-Status: Backport [https://git.kernel.org/pub/scm/utils/mdadm/mdadm.git/commit/?id=7539254342bc591717b0051734cc6c09c1b88640] | ||
11 | |||
12 | Signed-off-by: Sudhakar Panneerselvam <sudhakar.panneerselvam@oracle.com> | ||
13 | Signed-off-by: Himanshu Madhani <himanshu.madhani@oracle.com> | ||
14 | Signed-off-by: Logan Gunthorpe <logang@deltatee.com> | ||
15 | Signed-off-by: Jes Sorensen <jes@trained-monkey.org> | ||
16 | Signed-off-by: Mingli Yu <mingli.yu@windriver.com> | ||
17 | --- | ||
18 | tests/00raid0 | 6 ++---- | ||
19 | 1 file changed, 2 insertions(+), 4 deletions(-) | ||
20 | |||
21 | diff --git a/tests/00raid0 b/tests/00raid0 | ||
22 | index 8bc18985..e6b21cc4 100644 | ||
23 | --- a/tests/00raid0 | ||
24 | +++ b/tests/00raid0 | ||
25 | @@ -6,11 +6,9 @@ check raid0 | ||
26 | testdev $md0 3 $mdsize2_l 512 | ||
27 | mdadm -S $md0 | ||
28 | |||
29 | -# now with version-0.90 superblock | ||
30 | +# verify raid0 with layouts fail for 0.90 | ||
31 | mdadm -CR $md0 -e0.90 -l0 -n4 $dev0 $dev1 $dev2 $dev3 | ||
32 | -check raid0 | ||
33 | -testdev $md0 4 $mdsize0 512 | ||
34 | -mdadm -S $md0 | ||
35 | +check opposite_result | ||
36 | |||
37 | # now with no superblock | ||
38 | mdadm -B $md0 -l0 -n5 $dev0 $dev1 $dev2 $dev3 $dev4 | ||
39 | -- | ||
40 | 2.25.1 | ||
41 | |||
diff --git a/meta/recipes-extended/mdadm/mdadm_4.2.bb b/meta/recipes-extended/mdadm/mdadm_4.2.bb index ffb42aa13a..14de9d88c2 100644 --- a/meta/recipes-extended/mdadm/mdadm_4.2.bb +++ b/meta/recipes-extended/mdadm/mdadm_4.2.bb | |||
@@ -28,6 +28,7 @@ SRC_URI = "${KERNELORG_MIRROR}/linux/utils/raid/mdadm/${BPN}-${PV}.tar.xz \ | |||
28 | file://0001-Define-alignof-using-_Alignof-when-using-C11-or-newe.patch \ | 28 | file://0001-Define-alignof-using-_Alignof-when-using-C11-or-newe.patch \ |
29 | file://0001-mdadm-Fix-optional-write-behind-parameter.patch \ | 29 | file://0001-mdadm-Fix-optional-write-behind-parameter.patch \ |
30 | file://0001-tests-02lineargrow-clear-the-superblock-at-every-ite.patch \ | 30 | file://0001-tests-02lineargrow-clear-the-superblock-at-every-ite.patch \ |
31 | file://0001-tests-00raid0-add-a-test-that-validates-raid0-with-l.patch \ | ||
31 | file://0001-tests-fix-raid0-tests-for-0.90-metadata.patch \ | 32 | file://0001-tests-fix-raid0-tests-for-0.90-metadata.patch \ |
32 | file://0001-tests-00readonly-Run-udevadm-settle-before-setting-r.patch \ | 33 | file://0001-tests-00readonly-Run-udevadm-settle-before-setting-r.patch \ |
33 | file://0001-tests-04update-metadata-avoid-passing-chunk-size-to.patch \ | 34 | file://0001-tests-04update-metadata-avoid-passing-chunk-size-to.patch \ |