2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2000-2001 Silicon Graphics, Inc. All Rights Reserved.
10 _begin_fstest rw udf auto quick
12 status=0 # success is the default!
14 # Override the default cleanup function.
19 rm -rf $TEST_DIR/truncfile.$$.*
22 # Import common functions.
30 # ensure EOF preallocation doesn't massively extend the runtime of this test
31 # by limiting the amount of preallocation and therefore the amount of blocks
32 # zeroed during the truncfile test run.
33 if [ "$FSTYP" == "xfs" ]; then
35 _test_mount -o allocsize=64k
38 echo "brevity is wit..."
43 $here/src/truncfile -c 10000 $TEST_DIR/truncfile.$$.0 >$tmp.out 2>&1
45 if [ "$ret" -ne 0 ]; then
47 echo "truncfile returned $ret : \"$out\""