Whamcloud - gitweb
- fixed up lustre_mds.h to allow inclusion in userspace testreq.c
[fs/lustre-release.git] / lustre / tests / runfailure-net
1 #!/bin/sh
2
3 set -vx
4
5 run() {
6         echo $1 > /proc/sys/lustre/fail_loc
7         shift
8         $* &
9         sleep 1
10         kill -9 $!
11 }
12
13 # GETATTR_NET - ls will hang on the getattr
14 run 0x102 ls /mnt/obd/lost+found
15
16 # READPAGE_NET - ls will hang reading in new pages (lost+found is not in cache)
17 run 0x104 ls /mnt/obd/lost+found
18
19 sleep 1
20
21 # REINT_NET - touch will hang on setattr
22 run 0x107 touch /mnt/obd
23
24 # REINT_NET - touch will hang on create
25 run 0x107 touch /mnt/obd/tt
26
27 # REINT_NET - mv will hang on rename
28 run 0x107 mv /mnt/obd/lost+found /mnt/obd/lost
29
30 # REINT_NET - rm will hang on unlink
31 run 0x107 rmdir /mnt/obd/lost+found
32
33 # OPEN_NET - ls will hang on open
34 run 0x113 ls /mnt/obd/lost+found
35
36 # CLOSE_NET - ls will hang on close
37 run 0x115 ./testreq --close junk_file_handle
38
39 run 0 ls -a /mnt/obd/
40
41 echo "Done."