X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Ftests%2Freplay-ost-single.sh;fp=lustre%2Ftests%2Freplay-ost-single.sh;h=5bf861081b00551d6d5cc69867f7763fe5f932e0;hp=c02d9fae7737878eaf830c397a59a82b45f53544;hb=80a818b80373bebd1438a74aeebda102b4885e53;hpb=108339f1543fb006f4ddd16830e7266df0b46723 diff --git a/lustre/tests/replay-ost-single.sh b/lustre/tests/replay-ost-single.sh index c02d9fa..5bf8610 100755 --- a/lustre/tests/replay-ost-single.sh +++ b/lustre/tests/replay-ost-single.sh @@ -413,6 +413,25 @@ test_9() { } run_test 9 "Verify that no req deadline happened during recovery" +test_10() { + rm -f $TDIR/$tfile + + dd if=/dev/zero of=$TDIR/$tfile count=10 || error "dd failed" + + #define OBD_FAIL_OSC_DELAY_IO 0x414 + $LCTL set_param fail_val=60 fail_loc=0x414 + cancel_lru_locks OST0000-osc & + sleep 2 + facet_failover ost1 || error "failover: $?" + + #define OBD_FAIL_LDLM_GRANT_CHECK 0x32a + $LCTL set_param fail_loc=0x32a + stat $TDIR/$tfile + + wait +} +run_test 10 "conflicting PW & PR locks on a client" + complete $SECONDS check_and_cleanup_lustre exit_status