From: NeilBrown Date: Fri, 10 Jul 2015 04:42:20 +0000 (+1000) Subject: tests: do not try to 'flushbufs' after stopping a array X-Git-Tag: mdadm-3.3.3~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=439c196491a97963c24aebeae78cc82f5a6de745;p=thirdparty%2Fmdadm.git tests: do not try to 'flushbufs' after stopping a array If the array is stopped, there is nothing to flush, and blockdev can signal an error. Signed-off-by: NeilBrown --- diff --git a/tests/19raid6auto-repair b/tests/19raid6auto-repair index 23b14e4b..7fb1c72f 100644 --- a/tests/19raid6auto-repair +++ b/tests/19raid6auto-repair @@ -39,5 +39,3 @@ cmp -s -n $array_data_size_in_b $md0 /tmp/RandFile || { echo cmp failed ; exit 2 mdadm -S $md0 udevadm settle -blockdev --flushbufs $md0 $devs; sync -echo 3 > /proc/sys/vm/drop_caches diff --git a/tests/19raid6repair b/tests/19raid6repair index a1a91e74..1159bd3e 100644 --- a/tests/19raid6repair +++ b/tests/19raid6repair @@ -42,6 +42,6 @@ for failure in "$dev3 3 3 2" "$dev3 3 2 3" "$dev3 3 2 1" "$dev3 3 2 0" "$dev4 3 mdadm -S $md0 udevadm settle - blockdev --flushbufs $devs; sync + sync echo 3 > /proc/sys/vm/drop_caches done diff --git a/tests/19repair-does-not-destroy b/tests/19repair-does-not-destroy index 1d3b9b45..a92883fd 100644 --- a/tests/19repair-does-not-destroy +++ b/tests/19repair-does-not-destroy @@ -26,4 +26,3 @@ cmp -s -n $array_data_size_in_b $md0 /tmp/RandFile || { echo should not mess up mdadm -S $md0 udevadm settle -blockdev --flushbufs $md0 $devs; sync