summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/mdadm
diff options
context:
space:
mode:
authorMingli Yu <mingli.yu@windriver.com>2023-03-16 16:27:39 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-03-16 17:49:38 +0000
commit78465fcbbba997e70b06d9e7eb3cace6e29dff92 (patch)
tree6521ecc305ae68f39aca95ca0290a9a738d5193c /meta/recipes-extended/mdadm
parent375a784d8c4651d208a05d59e14655d3b759cd56 (diff)
downloadpoky-78465fcbbba997e70b06d9e7eb3cace6e29dff92.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: 4f7175b9af3f4407f6dfa1e1eb18b2c3d3a72c88) Signed-off-by: Mingli Yu <mingli.yu@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/mdadm')
-rw-r--r--meta/recipes-extended/mdadm/files/0001-tests-02lineargrow-clear-the-superblock-at-every-ite.patch33
-rw-r--r--meta/recipes-extended/mdadm/mdadm_4.2.bb1
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 @@
1From a2c832465fc75202e244327b2081231dfa974617 Mon Sep 17 00:00:00 2001
2From: Sudhakar Panneerselvam <sudhakar.panneerselvam@oracle.com>
3Date: Wed, 22 Jun 2022 14:25:16 -0600
4Subject: [PATCH] tests/02lineargrow: clear the superblock at every iteration
5
6This fixes 02lineargrow test as prior metadata causes --add operation
7to misbehave.
8
9Upstream-Status: Backport [https://git.kernel.org/pub/scm/utils/mdadm/mdadm.git/commit/?id=a2c832465fc75202e244327b2081231dfa974617]
10
11Signed-off-by: Sudhakar Panneerselvam <sudhakar.panneerselvam@oracle.com>
12Signed-off-by: Himanshu Madhani <himanshu.madhani@oracle.com>
13Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
14Signed-off-by: Jes Sorensen <jes@trained-monkey.org>
15Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
16---
17 tests/02lineargrow | 2 ++
18 1 file changed, 2 insertions(+)
19
20diff --git a/tests/02lineargrow b/tests/02lineargrow
21index 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--
322.25.1
33
diff --git a/meta/recipes-extended/mdadm/mdadm_4.2.bb b/meta/recipes-extended/mdadm/mdadm_4.2.bb
index cef9e18843..b5fbc5b18e 100644
--- a/meta/recipes-extended/mdadm/mdadm_4.2.bb
+++ b/meta/recipes-extended/mdadm/mdadm_4.2.bb
@@ -27,6 +27,7 @@ SRC_URI = "${KERNELORG_MIRROR}/linux/utils/raid/mdadm/${BPN}-${PV}.tar.xz \
27 file://0001-restripe.c-Use-_FILE_OFFSET_BITS-to-enable-largefile.patch \ 27 file://0001-restripe.c-Use-_FILE_OFFSET_BITS-to-enable-largefile.patch \
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 " 31 "
31 32
32SRC_URI[sha256sum] = "461c215670864bb74a4d1a3620684aa2b2f8296dffa06743f26dda5557acf01d" 33SRC_URI[sha256sum] = "461c215670864bb74a4d1a3620684aa2b2f8296dffa06743f26dda5557acf01d"