2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2007 Silicon Graphics, Inc. All Rights Reserved.
7 # unwritten extent conversion test
10 seqres=$RESULT_DIR/$seq
11 echo "QA output created by $seq"
16 status=1 # failure is the default!
17 trap "_cleanup; exit \$status" 0 1 2 3 15
21 $KILLALL_PROG -r -q -TERM fsstress 2> /dev/null
22 wait # ensures all fsstress processes died
29 FSSTRESS_ARGS=`_scale_fsstress_args -d $SCRATCH_MNT -p $procs -n $nops \
31 $FSSTRESS_PROG $FSSTRESS_ARGS >> $seqres.full &
35 # get standard environment, filters and checks
39 # real QA test starts here
42 _require_command "$KILLALL_PROG" killall
43 _require_xfs_io_command "falloc"
46 _scratch_mkfs_xfs >/dev/null 2>&1
49 # fast devices can consume disk space at a rate of 1GB every 5s via the
50 # background workload. With 50 test loops, at 1 second per loop, that means we
51 # need at least 10GB of disk space to ensure this test will not fail with ENOSPC
53 _require_fs_space $SCRATCH_MNT 10485760
55 TEST_FILE=$SCRATCH_MNT/test_file
56 TEST_PROG=$here/src/unwritten_sync
59 echo "*** test unwritten extent conversion under heavy I/O"
64 $TEST_PROG $LOOPS $TEST_FILE