diff options
author | Mingli Yu <mingli.yu@windriver.com> | 2023-03-16 16:49:58 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-03-23 22:45:34 +0000 |
commit | 1bf1d77db576080c58bc5cfc33a211e73041cdff (patch) | |
tree | f4503ae57cc0784f3511a4d08ea796a6f80ee80b | |
parent | c69fb7bfe427ea5adc64b1d453547a6e496bf55e (diff) | |
download | poky-1bf1d77db576080c58bc5cfc33a211e73041cdff.tar.gz |
mdadm: fix tests/02lineargrow
Backport patch [1] to fix tests/02lineargrow.
[1] https://git.kernel.org/pub/scm/utils/mdadm/mdadm.git/commit/?id=a2c832465fc75202e244327b2081231dfa974617
(From OE-Core rev: 3c2d554f141eb64785e86c8d1e5d85c65caaf322)
Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-extended/mdadm/files/0001-tests-02lineargrow-clear-the-superblock-at-every-ite.patch | 33 | ||||
-rw-r--r-- | meta/recipes-extended/mdadm/mdadm_4.2.bb | 1 |
2 files changed, 34 insertions, 0 deletions
diff --git a/meta/recipes-extended/mdadm/files/0001-tests-02lineargrow-clear-the-superblock-at-every-ite.patch b/meta/recipes-extended/mdadm/files/0001-tests-02lineargrow-clear-the-superblock-at-every-ite.patch new file mode 100644 index 0000000000..1a7104b76d --- /dev/null +++ b/meta/recipes-extended/mdadm/files/0001-tests-02lineargrow-clear-the-superblock-at-every-ite.patch | |||
@@ -0,0 +1,33 @@ | |||
1 | From a2c832465fc75202e244327b2081231dfa974617 Mon Sep 17 00:00:00 2001 | ||
2 | From: Sudhakar Panneerselvam <sudhakar.panneerselvam@oracle.com> | ||
3 | Date: Wed, 22 Jun 2022 14:25:16 -0600 | ||
4 | Subject: [PATCH] tests/02lineargrow: clear the superblock at every iteration | ||
5 | |||
6 | This fixes 02lineargrow test as prior metadata causes --add operation | ||
7 | to misbehave. | ||
8 | |||
9 | Upstream-Status: Backport [https://git.kernel.org/pub/scm/utils/mdadm/mdadm.git/commit/?id=a2c832465fc75202e244327b2081231dfa974617] | ||
10 | |||
11 | Signed-off-by: Sudhakar Panneerselvam <sudhakar.panneerselvam@oracle.com> | ||
12 | Signed-off-by: Himanshu Madhani <himanshu.madhani@oracle.com> | ||
13 | Signed-off-by: Logan Gunthorpe <logang@deltatee.com> | ||
14 | Signed-off-by: Jes Sorensen <jes@trained-monkey.org> | ||
15 | Signed-off-by: Mingli Yu <mingli.yu@windriver.com> | ||
16 | --- | ||
17 | tests/02lineargrow | 2 ++ | ||
18 | 1 file changed, 2 insertions(+) | ||
19 | |||
20 | diff --git a/tests/02lineargrow b/tests/02lineargrow | ||
21 | index e05c219d..595bf9f2 100644 | ||
22 | --- a/tests/02lineargrow | ||
23 | +++ b/tests/02lineargrow | ||
24 | @@ -20,4 +20,6 @@ do | ||
25 | testdev $md0 3 $sz 1 | ||
26 | |||
27 | mdadm -S $md0 | ||
28 | + mdadm --zero /dev/loop2 | ||
29 | + mdadm --zero /dev/loop3 | ||
30 | done | ||
31 | -- | ||
32 | 2.25.1 | ||
33 | |||
diff --git a/meta/recipes-extended/mdadm/mdadm_4.2.bb b/meta/recipes-extended/mdadm/mdadm_4.2.bb index be08d512d7..120c7f582b 100644 --- a/meta/recipes-extended/mdadm/mdadm_4.2.bb +++ b/meta/recipes-extended/mdadm/mdadm_4.2.bb | |||
@@ -25,6 +25,7 @@ SRC_URI = "${KERNELORG_MIRROR}/linux/utils/raid/mdadm/${BPN}-${PV}.tar.xz \ | |||
25 | file://0001-Fix-parsing-of-r-in-monitor-manager-mode.patch \ | 25 | file://0001-Fix-parsing-of-r-in-monitor-manager-mode.patch \ |
26 | file://0001-Makefile-install-mdcheck.patch \ | 26 | file://0001-Makefile-install-mdcheck.patch \ |
27 | file://0001-mdadm-Fix-optional-write-behind-parameter.patch \ | 27 | file://0001-mdadm-Fix-optional-write-behind-parameter.patch \ |
28 | file://0001-tests-02lineargrow-clear-the-superblock-at-every-ite.patch \ | ||
28 | " | 29 | " |
29 | 30 | ||
30 | SRC_URI[sha256sum] = "461c215670864bb74a4d1a3620684aa2b2f8296dffa06743f26dda5557acf01d" | 31 | SRC_URI[sha256sum] = "461c215670864bb74a4d1a3620684aa2b2f8296dffa06743f26dda5557acf01d" |