From 112c62b40c7a8347a6c554666e7902a17ffc51d2 Mon Sep 17 00:00:00 2001 From: shaver Date: Fri, 21 Nov 2003 00:19:11 +0000 Subject: [PATCH] Verify data from a read that spans a failover. --- lustre/tests/replay-ost-single.sh | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/lustre/tests/replay-ost-single.sh b/lustre/tests/replay-ost-single.sh index 6d833b1..2fd4f42 100755 --- a/lustre/tests/replay-ost-single.sh +++ b/lustre/tests/replay-ost-single.sh @@ -105,6 +105,20 @@ test_3() { } run_test 3 "Fail OST during write, with verification" +test_4() { + verify=$ROOT/tmp/verify-$$ + dd if=/dev/urandom bs=1024 count=5120 | tee $verify > $DIR/$tfile + # invalidate cache, so that we're reading over the wire + for i in /proc/fs/lustre/ldlm/namespaces/OSC_*MNT*; do + echo -n clear > $i/lru_size + done + cmp $verify $DIR/$tfile & + cmppid=$! + fail ost + wait $cmppid || return 1 + rm $verify +} +run_test 4 "Fail OST during read, with verification" + equals_msg test complete, cleaning up cleanup - -- 1.8.3.1