Blame SOURCES/0038-tests-00raid0-add-a-test-that-validates-raid0-with-l.patch

c0f891
From 7539254342bc591717b0051734cc6c09c1b88640 Mon Sep 17 00:00:00 2001
c0f891
From: Sudhakar Panneerselvam <sudhakar.panneerselvam@oracle.com>
c0f891
Date: Wed, 22 Jun 2022 14:25:13 -0600
37f2b0
Subject: [PATCH 38/83] tests/00raid0: add a test that validates raid0 with
c0f891
 layout fails for 0.9
c0f891
c0f891
329dfc28debb disallows the creation of raid0 with layouts for 0.9
c0f891
metadata. This test confirms the new behavior.
c0f891
c0f891
Signed-off-by: Sudhakar Panneerselvam <sudhakar.panneerselvam@oracle.com>
c0f891
Signed-off-by: Himanshu Madhani <himanshu.madhani@oracle.com>
c0f891
Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
c0f891
Signed-off-by: Jes Sorensen <jes@trained-monkey.org>
c0f891
---
c0f891
 tests/00raid0 | 6 ++----
c0f891
 1 file changed, 2 insertions(+), 4 deletions(-)
c0f891
c0f891
diff --git a/tests/00raid0 b/tests/00raid0
c0f891
index 8bc18985..e6b21cc4 100644
c0f891
--- a/tests/00raid0
c0f891
+++ b/tests/00raid0
c0f891
@@ -6,11 +6,9 @@ check raid0
c0f891
 testdev $md0 3 $mdsize2_l 512
c0f891
 mdadm -S $md0
c0f891
 
c0f891
-# now with version-0.90 superblock
c0f891
+# verify raid0 with layouts fail for 0.90
c0f891
 mdadm -CR $md0 -e0.90 -l0 -n4 $dev0 $dev1 $dev2 $dev3
c0f891
-check raid0
c0f891
-testdev $md0 4 $mdsize0 512
c0f891
-mdadm -S $md0
c0f891
+check opposite_result
c0f891
 
c0f891
 # now with no superblock
c0f891
 mdadm -B $md0 -l0 -n5 $dev0 $dev1 $dev2 $dev3 $dev4
c0f891
-- 
37f2b0
2.38.1
c0f891