From 769cec4506106a6c8158c06c69dbff26eeab5ca4 Mon Sep 17 00:00:00 2001 From: shaver Date: Mon, 24 Feb 2003 19:37:04 +0000 Subject: [PATCH] Dropped-request and dropped-reply tests for rename. --- lustre/tests/recovery-small.sh | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/lustre/tests/recovery-small.sh b/lustre/tests/recovery-small.sh index 5c8b4ad..3637c2db1 100755 --- a/lustre/tests/recovery-small.sh +++ b/lustre/tests/recovery-small.sh @@ -85,31 +85,28 @@ unmount_client() { setup() { make_config - start_mds --reformat - start_ost --reformat + start_mds ${REFORMAT:---reformat} + start_ost ${REFORMAT:---reformat} # XXX we should write our own upcall, when we move this somewhere better. - mount_client --timeout=10 \ + mount_client --timeout=${TIMEOUT:-5} \ --recovery_upcall=$PWD/../../ltest/functional/llite/09/client-upcall.sh } cleanup() { - unmount_client || true - shutdown_mds || true - shutdown_ost || true + do_mds "echo 0 > /proc/sys/lustre/fail_loc" + unmount_client $@ || true + shutdown_mds $@ || true + shutdown_ost $@ || true } replay() { - if [ $# -gt 1 ]; then - do_client "$1" - shift - fi do_mds "sync" do_mds 'echo -e "device \$mds1\\nprobe\\nnotransno\\nreadonly" | lctl' do_client "$1" & shutdown_mds -f start_mds wait - do_client "df -h $MOUNPT" # trigger failover, if we haven't already + do_client "df -h $MOUNTPT" # trigger failover, if we haven't already } if [ ! -z "$ONLY" ]; then @@ -130,6 +127,11 @@ drop_request "statone /mnt/lustre/2" drop_reply "statone /mnt/lustre/2" # replay "statone /mnt/lustre/2" -drop_request "opendelay /mnt/lustre/2" -drop_reply "opendelay /mnt/lustre/2" +do_client "cp /etc/resolv.conf /mnt/lustre/resolv.conf" +drop_request "cat /mnt/lustre/resolv.conf > /dev/null" +drop_reply "cat /mnt/lustre/resolv.conf > /dev/null" + +drop_request "mv /mnt/lustre/resolv.conf /mnt/lustre/renamed" +drop_reply "mv /mnt/lustre/renamed /mnt/lustre/renamed-again" + cleanup -- 1.8.3.1