4 # unwritten extent conversion test
6 #-----------------------------------------------------------------------
7 # Copyright (c) 2007 Silicon Graphics, Inc. All Rights Reserved.
8 #-----------------------------------------------------------------------
14 echo "QA output created by $seq"
16 killall="/usr/bin/killall"
20 status=1 # failure is the default!
21 trap "_cleanup; exit \$status" 0 1 2 3 15
25 killall -r -q -TERM fsstress 2> /dev/null
26 sync # ensures all fsstress processes died
34 $FSSTRESS_PROG -d $SCRATCH_MNT -p $procs -n $nops $FSSTRESS_AVOID \
39 # get standard environment, filters and checks
43 # real QA test starts here
47 [ -x $killall ] || _notrun "$killall executable not found"
51 _scratch_mkfs_xfs >/dev/null 2>&1
54 TEST_FILE=$SCRATCH_MNT/test_file
55 TEST_PROG=$here/src/unwritten_sync
58 echo "*** test unwritten extent conversion under heavy I/O"
63 $TEST_PROG $LOOPS $TEST_FILE