4 # ftruncate test, modified from CXFSQA tests cxfs_ftrunc and cxfs_trunc
6 #-----------------------------------------------------------------------
7 # Copyright (c) 2006 Silicon Graphics, Inc. All Rights Reserved.
8 #-----------------------------------------------------------------------
14 echo "QA output created by $seq"
18 status=1 # failure is the default!
19 trap "_cleanup; exit \$status" 0 1 2 3 15
26 # get standard environment, filters and checks
30 # real QA test starts here
31 _supported_fs xfs udf nfs
38 TESTDIR=$testdir/ftrunc
39 TESTFILE=$TESTDIR/ftrunc.tmp
41 [ -d $TESTDIR ] && rm -r $TESTDIR
44 # ftrunc must be run as a mortal user.
50 su $qa_user -c "$here/src/ftrunc -f $TESTFILE"
52 if [ "$?" != "0" ]; then
53 echo src/ftrunc returned non 0 status!
56 src/trunc -f $TESTFILE
57 if (test $? -eq 0 ) then