xfs/419: remove irrelevant swapfile test
[xfstests-dev.git] / tests / xfs / 183
1 #! /bin/bash
2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2007 Silicon Graphics, Inc.  All Rights Reserved.
4 #
5 # FS QA Test No. 183
6 #
7 # Test to check bulkstat returns unlinked-but-referenced inodes
8 # (PVs: 972128, 972004)
9 #
10 seq=`basename $0`
11 seqres=$RESULT_DIR/$seq
12 echo "QA output created by $seq"
13
14 here=`pwd`
15 tmp=/tmp/$$
16 status=1        # failure is the default!
17 trap "_cleanup; exit \$status" 0 1 2 3 15
18
19 _cleanup()
20 {
21     cd /
22     rm -f $tmp.*
23 }
24
25 # get standard environment, filters and checks
26 . ./common/rc
27 . ./common/filter
28
29 # real QA test starts here
30
31 # Modify as appropriate.
32 _supported_fs xfs
33
34 # Setup Filesystem
35 _require_scratch
36 _scratch_mkfs_xfs >/dev/null 2>&1 \
37         || _fail "mkfs failed"
38
39 _scratch_mount
40
41 # run Mark Goodwin test here
42 # Usage: ./bulkstat_unlink_test iterations nfiles stride dir
43 #        Create dir with nfiles, unlink each stride'th file, sync, bulkstat
44 echo "Start original bulkstat_unlink_test with -r switch"
45 $here/src/bulkstat_unlink_test -r 1 100 1 $SCRATCH_MNT/bulkstat
46
47 # success, all done
48 status=0
49 exit