Thread (29 messages) 29 messages, 5 authors, 2022-06-22
STALE1492d
Revisions (2)
  1. v1 current
  2. v2 [diff vs current]

[PATCH mdadm v1 08/14] tests/00raid0: add a test that validates raid0 with layout fails for 0.9

From: Logan Gunthorpe <logang@deltatee.com>
Date: 2022-06-09 21:11:57
Subsystem: the rest · Maintainer: Linus Torvalds

From: Sudhakar Panneerselvam <redacted>

329dfc28debb disallows the creation of raid0 with layouts for 0.9
metadata. This test confirms the new behavior.

Signed-off-by: Sudhakar Panneerselvam <redacted>
Signed-off-by: Himanshu Madhani <redacted>
Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
---
 tests/00raid0 | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/tests/00raid0 b/tests/00raid0
index 8bc18985f91a..e6b21cc419eb 100644
--- a/tests/00raid0
+++ b/tests/00raid0
@@ -6,11 +6,9 @@ check raid0
 testdev $md0 3 $mdsize2_l 512
 mdadm -S $md0
 
-# now with version-0.90 superblock
+# verify raid0 with layouts fail for 0.90
 mdadm -CR $md0 -e0.90 -l0 -n4 $dev0 $dev1 $dev2 $dev3
-check raid0
-testdev $md0 4 $mdsize0 512
-mdadm -S $md0
+check opposite_result
 
 # now with no superblock
 mdadm -B $md0 -l0 -n5 $dev0 $dev1 $dev2 $dev3 $dev4
-- 
2.30.2
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help