Whamcloud - gitweb
Branch b1_4
authoradilger <adilger>
Mon, 16 May 2005 17:54:59 +0000 (17:54 +0000)
committeradilger <adilger>
Mon, 16 May 2005 17:54:59 +0000 (17:54 +0000)
Make sure that test 52 writemany will exit at some point.
Put writemany usage message at top of code so it is easily found.
r=nathan

lustre/tests/recovery-small.sh
lustre/tests/writemany.c

index cb9a89b..4497fb0 100755 (executable)
@@ -519,6 +519,8 @@ test_52_guts() {
        FAILURE_MODE="SOFT"
        fail ost
        rc=0
+       sleep 5
+       kill -USR1 $CLIENT_PID
        wait $CLIENT_PID || rc=$?
        # active client process should see an EIO for down OST
        [ $rc -eq 5 ] && { echo "writemany correctly failed $rc" && return 0; }
index 15a7292..ff9a21c 100644 (file)
@@ -25,6 +25,15 @@ char cmdname[512];
 int o_abort = 0;
 int o_quiet = 0;
 
+void usage(char *name)
+{
+        fprintf(stderr, "usage: %s [opts] <dirname> <seconds> <threads>\n",
+                name);
+        fprintf(stderr, "  -q quiet\n");
+        fprintf(stderr, "  -a abort other children on first err\n");
+        exit(1);
+}
+
 
 struct kid_list_t {
         pid_t kid;
@@ -189,16 +198,6 @@ int run_one_child(char *file, int thread, int seconds)
         return rc;
 }
 
-void usage(char *name)
-{
-        fprintf(stderr,
-                "usage: %s [opts] <dirname> <seconds> <threads>\n",
-                name);
-        fprintf(stderr, "  -q quiet\n");
-        fprintf(stderr, "  -a abort other children on first err\n");
-        exit(1);
-}
-
 int main(int argc, char *argv[])
 {
         unsigned long duration;