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 <neilb@suse.com>
This commit is contained in:
NeilBrown 2015-07-10 14:42:20 +10:00
parent bc6ccf969e
commit 439c196491
3 changed files with 1 additions and 4 deletions

View File

@ -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

View File

@ -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

View File

@ -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