test: speed up reshape when stopping arrays.

--stop needs to wait for reshape to get to a suitable
spot, so having really slow resync isn't helpful.

Signed-off-by: NeilBrown <neilb@suse.de>
This commit is contained in:
NeilBrown 2015-07-06 13:52:04 +10:00
parent 5c351af129
commit 602b916951
1 changed files with 7 additions and 4 deletions

11
test
View File

@ -152,15 +152,18 @@ do_setup() {
mdadm() {
rm -f $targetdir/stderr
case $* in
*-S* ) udevadm settle;;
*-S* ) udevadm settle
p=`cat /proc/sys/dev/raid/speed_limit_max`
echo 2000000 > /proc/sys/dev/raid/speed_limit_max
esac
case $* in
*-C* ) $mdadm 2> $targetdir/stderr --quiet "$@" --auto=yes;;
* ) $mdadm 2> $targetdir/stderr --quiet "$@"
*-C* ) $mdadm 2> $targetdir/stderr --quiet "$@" --auto=yes;;
* ) $mdadm 2> $targetdir/stderr --quiet "$@"
esac
rv=$?
case $* in
*-S* ) udevadm settle;;
*-S* ) udevadm settle
echo $p > /proc/sys/dev/raid/speed_limit_max
esac
cat >&2 $targetdir/stderr
return $rv