5 [ $2 ] && RC=$2 || RC=1
10 oldtimeout=`cat /proc/sys/lustre/timeout`
11 echo $TIMEOUT > /proc/sys/lustre/timeout
12 echo $1 > /proc/sys/lustre/fail_loc
19 echo $oldtimeout > /proc/sys/lustre/timeout
20 echo 0 > /proc/sys/lustre/fail_loc
21 umount -f /mnt/lustre || fail "cannot unmount /mnt/lustre"
22 mount -t lustre_lite -o "osc=$OSC,mdc=$MDC" none /mnt/lustre || \
23 fail "cannot remount $OSC/$MDC on /mnt/lustre"
29 OSC=OSC_localhost_UUID
31 TIMEOUT=5 # complete in finite time
33 [ "`mount | grep /mnt/lustre`" ] || echo | sh llmount.sh || exit -1
35 # GETATTR_NET - ls will hang on the getattr
36 # test_fail 0x102 ls -l /mnt/lustre
38 # READPAGE_NET - ls will hang reading in new pages (lost+found is not in cache)
39 test_fail 0x104 ls /mnt/lustre
43 # REINT_NET - touch will hang on setattr
44 test_fail 0x107 touch /mnt/lustre
46 # REINT_NET - touch will hang on create
47 test_fail 0x107 touch /mnt/lustre/tt
49 # REINT_NET - mv will hang on rename
51 test_fail 0x107 mv /mnt/lustre/foo /mnt/lustre/bar
53 # REINT_NET - rm will hang on unlink
54 touch /mnt/lustre/salmon
55 test_fail 0x107 rm /mnt/lustre/salmon
57 # OPEN_NET - touch will hang on open
59 test_fail 0x113 cat /mnt/lustre/foo
61 # CLOSE_NET - ls will hang on close
62 test_fail 0x115 ./testreq --close junk_file_handle
64 echo 0 > /proc/sys/lustre/fail_loc