]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
tests/03r5assemV1 - slow down recovery a bit more.
authorNeilBrown <neilb@suse.de>
Thu, 22 Dec 2011 19:41:52 +0000 (06:41 +1100)
committerNeilBrown <neilb@suse.de>
Thu, 22 Dec 2011 19:41:52 +0000 (06:41 +1100)
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 <neilb@suse.de>
tests/03r5assemV1

index 5238edee432576479d2e2681f70b7b6fde72179d..52b11077b014a3a20c5df762cd85d0ec0270987b 100644 (file)
@@ -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