11 echo $1 > /proc/sys/lustre/fail_loc
18 echo 0 > /proc/sys/lustre/fail_loc
19 umount /mnt/lustre || fail "cannot unmount /mnt/lustre"
20 setup_mount || fail "cannot remount /mnt/lustre"
23 [ "`mount | grep /mnt/lustre`" ] || . llsetup.sh "$@" || exit -1
25 # OBD_FAIL_OST_OPEN_NET: OST will discard open request packet
27 test_fail 0x208 cat /mnt/lustre/foo
29 # OBD_FAIL_OST_CLOSE_NET: OST will discard close request packet
30 test_fail 0x209 cat /mnt/lustre/foo
32 # OBD_FAIL_OST_CREATE_NET: OST will discard create request packet
33 test_fail 0x204 touch /mnt/lustre/bar
35 # OBD_FAIL_OST_DESTROY_NET: OST will discard destroy request packet
36 test_fail 0x205 rm /mnt/lustre/foo
38 # OBD_FAIL_OST_BRW_NET: OST will discard read request packet
39 echo foo >> /mnt/lustre/foo
40 test_fail 0x20a cat /mnt/lustre/foo
42 # OBD_FAIL_OST_BRW_NET: OST will discard write request packet
43 test_fail 0x20a "echo bar >> /mnt/lustre/foo"
45 # OBD_FAIL_OST_PUNCH_NET: OST will discard truncate request packet
46 test_fail 0x208 "echo bar > /mnt/lustre/foo"
48 # OBD_FAIL_OST_STATFS_NET: OST will discard statfs request packet
49 test_fail 0x208 df /mnt/lustre