From 64e9b3dab58b08a57fd8832491fb5eb89a575ee4 Mon Sep 17 00:00:00 2001 From: grev <grev> Date: Tue, 13 May 2008 19:37:30 +0000 Subject: [PATCH] b=15738 i=Adilger replay-single test_61* fixes: set fail loc on all oss --- lustre/tests/replay-single.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lustre/tests/replay-single.sh b/lustre/tests/replay-single.sh index 8335246df2..9440139822 100755 --- a/lustre/tests/replay-single.sh +++ b/lustre/tests/replay-single.sh @@ -1375,12 +1375,13 @@ test_61() { replay_barrier ost1 # OBD_FAIL_OST_LLOG_RECOVERY_TIMEOUT 0x221 unlinkmany $DIR/$tdir/$tfile-%d 800 - do_facet ost "sysctl -w lustre.fail_loc=0x80000221" + set_nodes_failloc "$(osts_nodes)" 0x80000221 facet_failover ost1 sleep 10 fail ost1 sleep 30 - do_facet ost "sysctl -w lustre.fail_loc=0x0" + set_nodes_failloc "$(osts_nodes)" 0x0 + $CHECKSTAT -t file $DIR/$tdir/$tfile-* && return 1 rmdir $DIR/$tdir } @@ -1401,10 +1402,11 @@ run_test 61b "test race mds llog sync vs llog cleanup" test_61c() { # OBD_FAIL_OST_CANCEL_COOKIE_TIMEOUT 0x222 touch $DIR/$tfile - do_facet ost "sysctl -w lustre.fail_loc=0x80000222" + set_nodes_failloc "$(osts_nodes)" 0x80000222 rm $DIR/$tfile sleep 10 fail ost1 + set_nodes_failloc "$(osts_nodes)" 0x0 } run_test 61c "test race mds llog sync vs llog cleanup" -- GitLab