summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2009-09-25 16:57:01 +1000
committerNeilBrown <neilb@suse.de>2009-09-25 16:57:01 +1000
commit2de8abd572b420498d60a7a83f5b2ca607e03234 (patch)
treec5025ab12cffedf9c69b314ac7f88646c981c00c
parentae80545ac3b75d8acea6060b040e5b4f345690e4 (diff)
downloadmdadm-2de8abd572b420498d60a7a83f5b2ca607e03234.tar.gz
mdadm-2de8abd572b420498d60a7a83f5b2ca607e03234.tar.xz
mdadm-2de8abd572b420498d60a7a83f5b2ca607e03234.zip
testreshape5 - flush devices between tests.
We need to flush the block devices before reading different data. Signed-off-by: NeilBrown <neilb@suse.de>
-rw-r--r--tests/07testreshape51
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/07testreshape5 b/tests/07testreshape5
index 44d5ddc..0360988 100644
--- a/tests/07testreshape5
+++ b/tests/07testreshape5
@@ -27,6 +27,7 @@ do
# test save
dd if=/dev/urandom of=$md0 bs=1024 count=$size
+ blockdev --flushbufs $md0 $devs
> /tmp/NewRand
$dir/test_stripe save /tmp/NewRand $disks $[chunk*1024] 5 $nlayout 0 $[size*1024] $devs
cmp -s -n $[size*1024] $md0 /tmp/NewRand || { echo cmp failed ; exit 2; }