Whamcloud - gitweb
- runfailure-net fixes:
authorpschwan <pschwan>
Tue, 2 Apr 2002 02:23:45 +0000 (02:23 +0000)
committerpschwan <pschwan>
Tue, 2 Apr 2002 02:23:45 +0000 (02:23 +0000)
  - create /dev/request
  - the open() test needs to actually do an open()
  - don't use "run 0 foo" to avoid 'No such pid' error

lustre/tests/runfailure-net

index 0da22bc..912b5cb 100755 (executable)
@@ -10,6 +10,8 @@ run() {
        kill -9 $!
 }
 
+mknod /dev/request c 10 244
+
 # GETATTR_NET - ls will hang on the getattr
 run 0x102 ls /mnt/obd/lost+found
 
@@ -30,12 +32,12 @@ run 0x107 mv /mnt/obd/lost+found /mnt/obd/lost
 # REINT_NET - rm will hang on unlink
 run 0x107 rmdir /mnt/obd/lost+found
 
-# OPEN_NET - ls will hang on open
-run 0x113 ls /mnt/obd/lost+found
+# OPEN_NET - touch will hang on open
+run 0x113 touch /mnt/obd/foo
 
 # CLOSE_NET - ls will hang on close
 run 0x115 ./testreq --close junk_file_handle
 
-run 0 ls -a /mnt/obd/
+echo 0 > /proc/sys/lustre/fail_loc
 
 echo "Done."
\ No newline at end of file