summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/mdadm/files/0001-tests-04update-metadata-avoid-passing-chunk-size-to.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-extended/mdadm/files/0001-tests-04update-metadata-avoid-passing-chunk-size-to.patch')
-rw-r--r--meta/recipes-extended/mdadm/files/0001-tests-04update-metadata-avoid-passing-chunk-size-to.patch41
1 files changed, 41 insertions, 0 deletions
diff --git a/meta/recipes-extended/mdadm/files/0001-tests-04update-metadata-avoid-passing-chunk-size-to.patch b/meta/recipes-extended/mdadm/files/0001-tests-04update-metadata-avoid-passing-chunk-size-to.patch
new file mode 100644
index 0000000000..9098fb2540
--- /dev/null
+++ b/meta/recipes-extended/mdadm/files/0001-tests-04update-metadata-avoid-passing-chunk-size-to.patch
@@ -0,0 +1,41 @@
1From de045db607b1ac4b70fc2a8878463e029c2ab1dc Mon Sep 17 00:00:00 2001
2From: Sudhakar Panneerselvam <sudhakar.panneerselvam@oracle.com>
3Date: Wed, 22 Jun 2022 14:25:15 -0600
4Subject: [PATCH] tests/04update-metadata: avoid passing chunk size to raid1
5
6'04update-metadata' test fails with error, "specifying chunk size is
7forbidden for this level" added by commit, 5b30a34aa4b5e. Hence,
8correcting the test to ignore passing chunk size to raid1.
9
10Upstream-Status: Backport [https://git.kernel.org/pub/scm/utils/mdadm/mdadm.git/commit/?id=de045db607b1ac4b70fc2a8878463e029c2ab1dc]
11
12Signed-off-by: Sudhakar Panneerselvam <sudhakar.panneerselvam@oracle.com>
13Signed-off-by: Himanshu Madhani <himanshu.madhani@oracle.com>
14[logang@deltatee.com: fix if/then style and dropped unrelated hunk]
15Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
16Signed-off-by: Jes Sorensen <jes@trained-monkey.org>
17Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
18---
19 tests/04update-metadata | 6 +++++-
20 1 file changed, 5 insertions(+), 1 deletion(-)
21
22diff --git a/tests/04update-metadata b/tests/04update-metadata
23index 08c14af7..2b72a303 100644
24--- a/tests/04update-metadata
25+++ b/tests/04update-metadata
26@@ -11,7 +11,11 @@ dlist="$dev0 $dev1 $dev2 $dev3"
27 for ls in linear/4 raid1/1 raid5/3 raid6/2
28 do
29 s=${ls#*/} l=${ls%/*}
30- mdadm -CR --assume-clean -e 0.90 $md0 --level $l -n 4 -c 64 $dlist
31+ if [[ $l == 'raid1' ]]; then
32+ mdadm -CR --assume-clean -e 0.90 $md0 --level $l -n 4 $dlist
33+ else
34+ mdadm -CR --assume-clean -e 0.90 $md0 --level $l -n 4 -c 64 $dlist
35+ fi
36 testdev $md0 $s 19904 64
37 mdadm -S $md0
38 mdadm -A $md0 --update=metadata $dlist
39--
402.25.1
41