2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2000-2001 Silicon Graphics, Inc. All Rights Reserved.
10 seqres=$RESULT_DIR/$seq
11 echo "QA output created by $seq"
15 status=0 # success is the default!
16 trap "_cleanup; exit \$status" 0 1 2 3 15
22 rm -rf $TEST_DIR/truncfile.$$.*
25 # get standard environment, filters and checks
34 # ensure EOF preallocation doesn't massively extend the runtime of this test
35 # by limiting the amount of preallocation and therefore the amount of blocks
36 # zeroed during the truncfile test run.
37 if [ "$FSTYP" == "xfs" ]; then
39 _test_mount -o allocsize=64k
42 echo "brevity is wit..."
47 $here/src/truncfile -c 10000 $TEST_DIR/truncfile.$$.0 >$tmp.out 2>&1
49 if [ "$ret" -ne 0 ]; then
51 echo "truncfile returned $ret : \"$out\""