9 echo $1 > /proc/sys/lustre/fail_loc
15 echo 0 > /proc/sys/lustre/fail_loc
16 umount /mnt/lustre || fail "cannot unmount /mnt/lustre"
17 mount -t lustre_lite -o device=`$OBDCTL name2dev OSCDEV` none /mnt/lustre || fail "cannot remount device '`$OBDCTL name2dev OSCDEV`' on /mnt/lustre"
20 [ -c /dev/request ] || mknod /dev/request c 10 244
22 [ "`mount | grep /mnt/lustre`" ] || echo | sh llmount.sh || exit -1
24 # GETATTR_NET - ls will hang on the getattr
25 test_fail 0x102 ls -l /mnt/lustre
27 # READPAGE_NET - ls will hang reading in new pages (lost+found is not in cache)
28 test_fail 0x104 ls /mnt/lustre
32 # REINT_NET - touch will hang on setattr
33 test_fail 0x107 touch /mnt/lustre
35 # REINT_NET - touch will hang on create
36 test_fail 0x107 touch /mnt/lustre/tt
38 # REINT_NET - mv will hang on rename
40 test_fail 0x107 mv /mnt/lustre/foo /mnt/lustre/bar
42 # REINT_NET - rm will hang on unlink
43 touch /mnt/lustre/salmon
44 test_fail 0x107 rm /mnt/lustre/salmon
46 # OPEN_NET - touch will hang on open
48 test_fail 0x113 cat /mnt/lustre/foo
50 # CLOSE_NET - ls will hang on close
51 test_fail 0x115 ./testreq --close junk_file_handle
53 echo 0 > /proc/sys/lustre/fail_loc