From: Karel Zak Date: Tue, 27 Apr 2010 15:12:50 +0000 (+0200) Subject: tests: explicitly use --chunk and --metadata in MD test X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=df8b7eef172208719859980f7f8a19be6cecdfdb;p=util-linux tests: explicitly use --chunk and --metadata in MD test The newer mdadm version uses a different chunk size and superblock format, so the final MD device has a different I/O limits (optimal I/O size is 1MiB for 1.20 metadata). We have to explicitly use the same format which is expected in our tests. Reported-by: Yulia Kopkova Signed-off-by: Karel Zak --- diff --git a/tests/ts/fdisk/align-512-4K-md b/tests/ts/fdisk/align-512-4K-md index bd94a591..ed0ec156 100755 --- a/tests/ts/fdisk/align-512-4K-md +++ b/tests/ts/fdisk/align-512-4K-md @@ -69,7 +69,8 @@ MD_DEVNAME=md8 MD_DEVICE=/dev/${MD_DEVNAME} /sbin/mdadm -q -S ${MD_DEVICE} &> /dev/null -/sbin/mdadm -q --create ${MD_DEVICE} --level=0 --raid-devices=2 ${DEVICE}1 ${DEVICE}2 >> $TS_OUTPUT 2>&1 +/sbin/mdadm -q --create ${MD_DEVICE} --metadata=0.90 --chunk=64 \ + --level=0 --raid-devices=2 ${DEVICE}1 ${DEVICE}2 >> $TS_OUTPUT 2>&1 ts_log "Create partitions (MD)" $TS_CMD_FDISK ${MD_DEVICE} >> $TS_OUTPUT 2>&1 <