Make sure 167 completes and unmounts scratch correctly
authorDave Chinner <dgc@sgi.com>
Wed, 20 Jun 2007 06:15:19 +0000 (06:15 +0000)
committerDave Chinner <dgc@sgi.com>
Wed, 20 Jun 2007 06:15:19 +0000 (06:15 +0000)
Merge of master-melb:xfs-cmds:28942a by kenmcd.

  run a sync after killing all the fsstress processes to ensure
  they have all completed before trying to unmount scratch.

167

diff --git a/167 b/167
index 92a1b48ecdd1c687750b58b0a550e6184ebcc859..7d5e9d2a2ad1a6e4036b27e00f44991d37f07caf 100644 (file)
--- a/167
+++ b/167
@@ -22,6 +22,7 @@ trap "_cleanup; exit \$status" 0 1 2 3 15
 _cleanup()
 {
        killall -q -TERM fsstress 2> /dev/null
+       sync    # ensures all fsstress processes died
        _cleanup_testdir
 }
 
@@ -49,7 +50,7 @@ _scratch_mount
 
 TEST_FILE=$SCRATCH_MNT/test_file
 TEST_PROG=$here/src/unwritten_sync
-LOOPS=100
+LOOPS=50
 
 echo "*** test unwritten extent conversion under heavy I/O"
 
@@ -57,7 +58,6 @@ workout
 
 rm -f $TEST_FILE
 $TEST_PROG $LOOPS $TEST_FILE
-killall -q -TERM fsstress 2> /dev/null
 
 echo "     *** test done"