[parted-devel] [PATCH] t6100--mdraid-partitions: Use v0.90 metadata for the test

Brian C. Lane bcl at redhat.com
Tue Jul 24 01:26:22 BST 2018


Newer metadata types use more disk space, causing the test to fail.
---
 tests/t6100-mdraid-partitions.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/t6100-mdraid-partitions.sh b/tests/t6100-mdraid-partitions.sh
index dbb1686..f051589 100755
--- a/tests/t6100-mdraid-partitions.sh
+++ b/tests/t6100-mdraid-partitions.sh
@@ -45,8 +45,8 @@ cleanup_fn_() {
   mdadm -S $md_dev || warn_ "Failed to stop MD array, $md_dev"
 }
 
-# create mdraid on top of both partitions
-mdadm -C $md_dev --force -R -l1 -n2 "${scsi_dev}1" "${scsi_dev}2"
+# create mdraid on top of both partitions with v0.90 metadata
+mdadm -C $md_dev -e0 --force -R -l1 -n2 "${scsi_dev}1" "${scsi_dev}2"
 
 # create gpt and two partitions on the raid device
 parted -s $md_dev mklabel gpt \
-- 
2.17.1




More information about the parted-devel mailing list