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
38 _scratch_unmount >/dev/null 2>&1
39 echo "*** MKFS ***" >>$seqres.full
40 echo "" >>$seqres.full
41 _scratch_mkfs_xfs >>$seqres.full 2>&1 \
42 || _fail "mkfs failed"
49 if ! touch $SCRATCH_MNT/fish
51 echo "!!! failed to touch fish"
55 if ! $here/src/xfsctl $SCRATCH_MNT $SCRATCH_MNT/fish >>$seqres.full 2>&1
57 echo "!!! failed to run xfsctl test program"
61 if ! rm $SCRATCH_MNT/fish
63 echo "!!! failed to remove fish"
67 # pv 801241 causes corruption here (inode left in agi_unlinked list)