From: NeilBrown Date: Thu, 22 Dec 2011 19:41:52 +0000 (+1100) Subject: tests/03r5assemV1 - slow down recovery a bit more. X-Git-Tag: mdadm-3.2.3~15 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0b50d3359a66aaface15af2471227560d7707f3b;p=thirdparty%2Fmdadm.git tests/03r5assemV1 - slow down recovery a bit more. In this test we stop and restart an array that is being recovered, and we do that several times. Sometimes it completes the recovery before we expect and test results are wrong. So slow it down a bit more. Signed-off-by: NeilBrown --- diff --git a/tests/03r5assemV1 b/tests/03r5assemV1 index 5238edee..52b11077 100644 --- a/tests/03r5assemV1 +++ b/tests/03r5assemV1 @@ -58,6 +58,9 @@ mdadm --assemble --scan --config=$conf $md1 eval $tst ### Now with a missing device +# We don't want the recovery to complete while we are +# messing about here. +echo 1000 > /proc/sys/dev/raid/speed_limit_max mdadm -AR $md1 $dev0 $dev2 $dev3 $dev4 # check state U_U @@ -120,3 +123,4 @@ mdadm -I -c $conf $dev0 mdadm -I -c $conf $dev1 mdadm -I -c $conf $dev2 eval $tst +echo 2000 > /proc/sys/dev/raid/speed_limit_max