From: NeilBrown Date: Mon, 6 Jul 2015 03:52:04 +0000 (+1000) Subject: test: speed up reshape when stopping arrays. X-Git-Tag: mdadm-3.3.3~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=602b9169510a9731ef4dc9b116b764bc57d5b44c;p=thirdparty%2Fmdadm.git 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 --- diff --git a/test b/test index ef5ad8eb..0e168ff1 100755 --- a/test +++ b/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