1d474f
From 3fd5c8e78a9758a6fc9310485d2428e300ad3b63 Mon Sep 17 00:00:00 2001
1d474f
From: Karel Zak <kzak@redhat.com>
1d474f
Date: Thu, 11 Jun 2020 10:55:25 +0200
1d474f
Subject: [PATCH 35/40] tests: mark MD tests with metadata v0.90 as KNOWN-FAIL
1d474f
1d474f
metadata v0.90 is deprecated thing and unsupported to create by some new
1d474f
mdadm versions. It's possible to assemble this array (with
1d474f
default_layout=1 on modprobe raid0), but impossible to create a new
1d474f
one.
1d474f
1d474f
Upstream: http://github.com/karelzak/util-linux/commit/4ae96cf77b36660255d5870a4209480bbec47902
1d474f
Upstream: http://github.com/karelzak/util-linux/commit/7519c3edab120b14623931d5ddb16fdc6e7cad5d
1d474f
Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1826251
1d474f
Signed-off-by: Karel Zak <kzak@redhat.com>
1d474f
---
1d474f
 tests/ts/blkid/md-raid0-whole  | 3 +++
1d474f
 tests/ts/blkid/md-raid1-part   | 3 +++
1d474f
 tests/ts/blkid/md-raid1-whole  | 3 +++
1d474f
 tests/ts/fdisk/align-512-4K-md | 3 +++
1d474f
 4 files changed, 12 insertions(+)
1d474f
1d474f
diff --git a/tests/ts/blkid/md-raid0-whole b/tests/ts/blkid/md-raid0-whole
1d474f
index 45c6ee55b..1f3fc2634 100755
1d474f
--- a/tests/ts/blkid/md-raid0-whole
1d474f
+++ b/tests/ts/blkid/md-raid0-whole
1d474f
@@ -29,6 +29,9 @@ ts_skip_nonroot
1d474f
 ts_check_losetup
1d474f
 ts_check_prog "mdadm"
1d474f
 
1d474f
+# rhbz#182625: It can't create new raid0 with metadata 0.90 from mdadm-4.1-12.
1d474f
+TS_KNOWN_FAIL="yes"                                         
1d474f
+
1d474f
 ts_log "Initialize devices"
1d474f
 IMGNAME="${TS_OUTDIR}/${TS_TESTNAME}"
1d474f
 
1d474f
diff --git a/tests/ts/blkid/md-raid1-part b/tests/ts/blkid/md-raid1-part
1d474f
index 3fa6395b0..3d42aadb8 100755
1d474f
--- a/tests/ts/blkid/md-raid1-part
1d474f
+++ b/tests/ts/blkid/md-raid1-part
1d474f
@@ -28,6 +28,9 @@ ts_check_test_command "$TS_CMD_BLKID"
1d474f
 ts_skip_nonroot
1d474f
 ts_check_prog "mdadm"
1d474f
 
1d474f
+# rhbz#182625: It can't create new raid0 with metadata 0.90 from mdadm-4.1-12.
1d474f
+TS_KNOWN_FAIL="yes"                                         
1d474f
+
1d474f
 # set global variable TS_DEVICE
1d474f
 ts_scsi_debug_init dev_size_mb=51 sector_size=512
1d474f
 
1d474f
diff --git a/tests/ts/blkid/md-raid1-whole b/tests/ts/blkid/md-raid1-whole
1d474f
index ddf4a6934..6eba9cc8e 100755
1d474f
--- a/tests/ts/blkid/md-raid1-whole
1d474f
+++ b/tests/ts/blkid/md-raid1-whole
1d474f
@@ -29,6 +29,9 @@ ts_skip_nonroot
1d474f
 ts_check_losetup
1d474f
 ts_check_prog "mdadm"
1d474f
 
1d474f
+# rhbz#182625: It can't create new raid0 with metadata 0.90 from mdadm-4.1-12.
1d474f
+TS_KNOWN_FAIL="yes"
1d474f
+
1d474f
 ts_log "Initialize devices"
1d474f
 IMGNAME="${TS_OUTDIR}/${TS_TESTNAME}"
1d474f
 
1d474f
diff --git a/tests/ts/fdisk/align-512-4K-md b/tests/ts/fdisk/align-512-4K-md
1d474f
index 68aaff0b7..0a8e09bc1 100755
1d474f
--- a/tests/ts/fdisk/align-512-4K-md
1d474f
+++ b/tests/ts/fdisk/align-512-4K-md
1d474f
@@ -31,6 +31,9 @@ ts_check_test_command "$TS_CMD_FDISK"
1d474f
 ts_skip_nonroot
1d474f
 ts_check_prog "mdadm"
1d474f
 
1d474f
+# rhbz#182625: It can't create new raid0 with metadata 0.90 from mdadm-4.1-12.
1d474f
+TS_KNOWN_FAIL="yes"
1d474f
+
1d474f
 # set global variable TS_DEVICE
1d474f
 ts_scsi_debug_init dev_size_mb=50 sector_size=512 physblk_exp=3
1d474f
 DEVNAME=$(basename $TS_DEVICE)
1d474f
-- 
1d474f
2.25.4
1d474f