From df8b7eef172208719859980f7f8a19be6cecdfdb Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Tue, 27 Apr 2010 17:12:50 +0200 Subject: [PATCH] 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 --- tests/ts/fdisk/align-512-4K-md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 <