From: shaver Date: Fri, 21 Nov 2003 00:19:11 +0000 (+0000) Subject: Verify data from a read that spans a failover. X-Git-Tag: v1_7_0_51~2^9~146 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=112c62b40c7a8347a6c554666e7902a17ffc51d2;p=fs%2Flustre-release.git Verify data from a read that spans a failover. --- 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 -