generic/233,270: unlimit the max locked memory size for io_uring
[xfstests-dev.git] / tests / xfs / 034
1 #! /bin/bash
2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2000-2002 Silicon Graphics, Inc.  All Rights Reserved.
4 #
5 # FS QA Test No. 034
6 #
7 # pv 801241 - check for reference leaks from the *handle xfsctls
8 #
9 seq=`basename $0`
10 seqres=$RESULT_DIR/$seq
11 echo "QA output created by $seq"
12
13 here=`pwd`
14 tmp=/tmp/$$
15 status=1        # failure is the default!
16
17 _cleanup()
18 {
19     cd /
20     rm -f $tmp.*
21     echo "*** unmount"
22     _scratch_unmount 2>/dev/null
23 }
24 trap "_cleanup; exit \$status" 0 1 2 3 15
25
26 # get standard environment, filters and checks
27 . ./common/rc
28 . ./common/filter
29
30 # real QA test starts here
31 _supported_fs xfs
32
33 _require_scratch
34
35 echo "*** init FS"
36
37 rm -f $seqres.full
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"
43 _scratch_mount
44
45 echo "*** test"
46
47 _check_scratch_fs
48
49 if ! touch $SCRATCH_MNT/fish
50 then
51     echo "!!! failed to touch fish"
52     exit
53 fi
54
55 if ! $here/src/xfsctl $SCRATCH_MNT $SCRATCH_MNT/fish >>$seqres.full 2>&1
56 then
57     echo "!!! failed to run xfsctl test program"
58     exit
59 fi
60
61 if ! rm $SCRATCH_MNT/fish
62 then
63     echo "!!! failed to remove fish"
64     exit
65 fi
66
67 # pv 801241 causes corruption here (inode left in agi_unlinked list)
68 echo "*** done"
69 # happy exit
70 status=0
71 exit 0