6 echo $1 > /proc/sys/lustre/fail_loc
12 echo 0 > /proc/sys/lustre/fail_loc
14 mount -t lustre_lite -o device=3 none /mnt/lustre
17 [ -c /dev/request ] || mknod /dev/request c 10 244
19 echo | sh llmount.sh || exit -1
21 # GETATTR_NET - ls will hang on the getattr
22 test_fail 0x102 ls -l /mnt/lustre
24 # READPAGE_NET - ls will hang reading in new pages (lost+found is not in cache)
25 test_fail 0x104 ls /mnt/lustre
29 # REINT_NET - touch will hang on setattr
30 test_fail 0x107 touch /mnt/lustre
32 # REINT_NET - touch will hang on create
33 test_fail 0x107 touch /mnt/lustre/tt
35 # REINT_NET - mv will hang on rename
37 test_fail 0x107 mv /mnt/lustre/foo /mnt/lustre/bar
39 # REINT_NET - rm will hang on unlink
40 touch /mnt/lustre/salmon
41 test_fail 0x107 rm /mnt/lustre/salmon
43 # OPEN_NET - touch will hang on open
45 test_fail 0x113 cat /mnt/lustre/foo
47 # CLOSE_NET - ls will hang on close
48 test_fail 0x115 ./testreq --close junk_file_handle
50 echo 0 > /proc/sys/lustre/fail_loc