From 1515d854262967cf1697fcba6b993f6e25a029a1 Mon Sep 17 00:00:00 2001 From: braam Date: Sat, 20 Sep 2003 21:04:55 +0000 Subject: [PATCH] - add code to set_dev_rdonly to flush all transactions up to the calling point - add a replay test which replays a re-open of a file, where the re-opening is responsible for creating objects. - add replay code to handle that. --- lustre/tests/replay-single.sh | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/lustre/tests/replay-single.sh b/lustre/tests/replay-single.sh index b8fffe8..d43056c 100755 --- a/lustre/tests/replay-single.sh +++ b/lustre/tests/replay-single.sh @@ -64,13 +64,24 @@ test_1() { } run_test 1 "simple create" -test_2() { +test_2a() { replay_barrier mds touch $DIR/$tfile fail mds $CHECKSTAT -t file $DIR/$tfile || return 1 + rm $DIR/$tfile +} +run_test 2a "touch" + +test_2b() { + ./mcreate $DIR/$tfile + replay_barrier mds + touch $DIR/$tfile + fail mds + $CHECKSTAT -t file $DIR/$tfile || return 1 + rm $DIR/$tfile } -run_test 2 "touch" +run_test 2b "touch" # bug 1852 test_3() { -- 1.8.3.1