2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2000-2002 Silicon Graphics, Inc. All Rights Reserved.
7 # pv 801241 - check for reference leaks from the *handle xfsctls
10 seqres=$RESULT_DIR/$seq
11 echo "QA output created by $seq"
15 status=1 # failure is the default!
22 _scratch_unmount 2>/dev/null
24 trap "_cleanup; exit \$status" 0 1 2 3 15
26 # get standard environment, filters and checks
30 # real QA test starts here
39 _scratch_unmount >/dev/null 2>&1
40 echo "*** MKFS ***" >>$seqres.full
41 echo "" >>$seqres.full
42 _scratch_mkfs_xfs >>$seqres.full 2>&1 \
43 || _fail "mkfs failed"
50 if ! touch $SCRATCH_MNT/fish
52 echo "!!! failed to touch fish"
56 if ! src/xfsctl $SCRATCH_MNT $SCRATCH_MNT/fish >>$seqres.full 2>&1
58 echo "!!! failed to run xfsctl test program"
62 if ! rm $SCRATCH_MNT/fish
64 echo "!!! failed to remove fish"
68 # pv 801241 causes corruption here (inode left in agi_unlinked list)