Blame SOURCES/0040-tests-04update-metadata-avoid-passing-chunk-size-to-.patch

fdf7c0
From de045db607b1ac4b70fc2a8878463e029c2ab1dc Mon Sep 17 00:00:00 2001
fdf7c0
From: Sudhakar Panneerselvam <sudhakar.panneerselvam@oracle.com>
fdf7c0
Date: Wed, 22 Jun 2022 14:25:15 -0600
fdf7c0
Subject: [PATCH 40/52] tests/04update-metadata: avoid passing chunk size to
fdf7c0
 raid1
fdf7c0
fdf7c0
'04update-metadata' test fails with error, "specifying chunk size is
fdf7c0
forbidden for this level" added by commit, 5b30a34aa4b5e. Hence,
fdf7c0
correcting the test to ignore passing chunk size to raid1.
fdf7c0
fdf7c0
Signed-off-by: Sudhakar Panneerselvam <sudhakar.panneerselvam@oracle.com>
fdf7c0
Signed-off-by: Himanshu Madhani <himanshu.madhani@oracle.com>
fdf7c0
[logang@deltatee.com: fix if/then style and dropped unrelated hunk]
fdf7c0
Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
fdf7c0
Signed-off-by: Jes Sorensen <jes@trained-monkey.org>
fdf7c0
---
fdf7c0
 tests/04update-metadata | 6 +++++-
fdf7c0
 1 file changed, 5 insertions(+), 1 deletion(-)
fdf7c0
fdf7c0
diff --git a/tests/04update-metadata b/tests/04update-metadata
fdf7c0
index 08c14af7..2b72a303 100644
fdf7c0
--- a/tests/04update-metadata
fdf7c0
+++ b/tests/04update-metadata
fdf7c0
@@ -11,7 +11,11 @@ dlist="$dev0 $dev1 $dev2 $dev3"
fdf7c0
 for ls in linear/4 raid1/1 raid5/3 raid6/2
fdf7c0
 do
fdf7c0
   s=${ls#*/} l=${ls%/*}
fdf7c0
-  mdadm -CR --assume-clean -e 0.90 $md0 --level $l -n 4 -c 64 $dlist
fdf7c0
+  if [[ $l == 'raid1' ]]; then
fdf7c0
+	mdadm -CR --assume-clean -e 0.90 $md0 --level $l -n 4 $dlist
fdf7c0
+  else
fdf7c0
+	mdadm -CR --assume-clean -e 0.90 $md0 --level $l -n 4 -c 64 $dlist
fdf7c0
+  fi
fdf7c0
   testdev $md0 $s 19904 64
fdf7c0
   mdadm -S $md0
fdf7c0
   mdadm -A $md0 --update=metadata $dlist
fdf7c0
-- 
fdf7c0
2.31.1
fdf7c0