3 #-----------------------------------------------------------------------
4 # Copyright (c) 2007 Silicon Graphics, Inc. All Rights Reserved.
6 # This program is free software; you can redistribute it and/or
7 # modify it under the terms of the GNU General Public License as
8 # published by the Free Software Foundation.
10 # This program is distributed in the hope that it would be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
15 # You should have received a copy of the GNU General Public License
16 # along with this program; if not, write the Free Software Foundation,
17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19 #-----------------------------------------------------------------------
23 # unwritten extent conversion test
29 echo "QA output created by $seq"
31 killall="/usr/bin/killall"
35 status=1 # failure is the default!
36 trap "_cleanup; exit \$status" 0 1 2 3 15
40 killall -r -q -TERM fsstress 2> /dev/null
41 sync # ensures all fsstress processes died
49 $FSSTRESS_PROG -d $SCRATCH_MNT -p $procs -n $nops $FSSTRESS_AVOID \
54 # get standard environment, filters and checks
58 # real QA test starts here
62 [ -x $killall ] || _notrun "$killall executable not found"
66 _scratch_mkfs_xfs >/dev/null 2>&1
69 TEST_FILE=$SCRATCH_MNT/test_file
70 TEST_PROG=$here/src/unwritten_sync
73 echo "*** test unwritten extent conversion under heavy I/O"
78 $TEST_PROG $LOOPS $TEST_FILE