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