Whamcloud - gitweb
LU-482 test: sync new fs before first replay test
authorAndreas Dilger <adilger@whamcloud.com>
Tue, 28 Feb 2012 21:15:35 +0000 (14:15 -0700)
committerOleg Drokin <green@whamcloud.com>
Thu, 1 Mar 2012 17:31:38 +0000 (12:31 -0500)
commit879e8d045057941ae0a5117d096f53975ef12ad0
tree9385a946be6bfdb95d407aa718daa2b6b4050595
parentcc875104bb81313415167425ce21c562ddf540c9
LU-482 test: sync new fs before first replay test

LVM lacks barrier support for kernel < 2.6.33, so we need to send an
explicit sync and sleep to avoid the replay_barrier call in the first
test being run from discarding blocks from just-formatted filesystems.
Otherwise this incorrectly causes just-written metadata to be lost by
the block layer by the dev-read-only failover test code.

Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: I69fc64298603ad75a4fcda09edde5bc7ded00c1e
Reviewed-on: http://review.whamcloud.com/2223
Reviewed-by: Lai Siyao <laisiyao@whamcloud.com>
Reviewed-by: Niu Yawei <niu@whamcloud.com>
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/replay-dual.sh
lustre/tests/replay-single-lmv.sh
lustre/tests/replay-single.sh
lustre/tests/test-framework.sh