diff options
author | NeilBrown <neilb@suse.de> | 2015-05-14 05:41:37 +0200 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2015-05-15 03:07:25 +0200 |
commit | 670fe20aa09be5f18233548a053fd81470b07b7c (patch) | |
tree | aa603b45dd1934f170e1c9356314e8b5e3a431af /tests | |
parent | tests: 05r6tor0 - add some more waiting. (diff) | |
download | mdadm-670fe20aa09be5f18233548a053fd81470b07b7c.tar.xz mdadm-670fe20aa09be5f18233548a053fd81470b07b7c.zip |
tests/05r6tor0: minor adjustments
1/ use correct data-offset for cmp - that has changed.
2/ flushbufs on the block device before reading to avoid cache issues
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/05r1-re-add | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/05r1-re-add b/tests/05r1-re-add index 44da8908..3da1a4a0 100644 --- a/tests/05r1-re-add +++ b/tests/05r1-re-add @@ -24,7 +24,8 @@ mdadm $md0 -r $dev2 testdev $md0 1 $mdsize1a 64 mdadm $md0 -a $dev2 check wait -cmp --ignore-initial=$[16*512] --bytes=$[$mdsize0*1024] $dev1 $dev2 +blockdev --flushbufs $dev1 $dev2 +cmp --ignore-initial=$[64*512] --bytes=$[$mdsize0*1024] $dev1 $dev2 mdadm $md0 -f $dev2; sleep 1 mdadm $md0 -r $dev2 @@ -32,5 +33,6 @@ if dd if=/dev/zero of=$md0 ; then : ; fi mdadm $md0 -a $dev2 check recovery check wait -cmp --ignore-initial=$[16*512] --bytes=$[$mdsize0*1024] $dev1 $dev2 +blockdev --flushbufs $dev1 $dev2 +cmp --ignore-initial=$[64*512] --bytes=$[$mdsize0*1024] $dev1 $dev2 mdadm -S $md0 |