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:
parent
5c351af129
commit
602b916951
11
test
11
test
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue