From: shaver Date: Fri, 21 Nov 2003 00:05:31 +0000 (+0000) Subject: Verify data written by operations that span a failure. X-Git-Tag: v1_7_0_51~2^9~147 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=c901d58c3a89654663e12093440665e4d890a7c9;p=fs%2Flustre-release.git Verify data written by operations that span a failure. --- diff --git a/lustre/tests/replay-ost-single.sh b/lustre/tests/replay-ost-single.sh index 420a198..6d833b1 100755 --- a/lustre/tests/replay-ost-single.sh +++ b/lustre/tests/replay-ost-single.sh @@ -94,15 +94,16 @@ test_2() { run_test 2 "|x| 10 open(O_CREAT)s" test_3() { - # small blocksize, to slow things down - dd if=/dev/zero of=$DIR/$tfile bs=1024 count=$((5 * 1024)) & + verify=$ROOT/tmp/verify-$$ + dd if=/dev/urandom bs=1024 count=5120 | tee $verify > $DIR/$tfile & ddpid=$! sync & fail ost wait $ddpid || return 1 - $CHECKSTAT -s $((5 * 1024 * 1024)) $DIR/$tfile + cmp $verify $DIR/$tfile || return 2 + rm $verify } -run_test 3 "Fail OST during IO" +run_test 3 "Fail OST during write, with verification" equals_msg test complete, cleaning up cleanup