Use larger files in test - makes it easier to expose problem.
[xfstests-dev.git] / 111
1 #! /bin/sh
2 # FS QA Test No. 108
3 #
4 # Infinite xfs_bulkstat bad-inode loop case from Roger Willcocks.
5 #
6 #-----------------------------------------------------------------------
7 # Copyright (c) 2006 Silicon Graphics, Inc.  All Rights Reserved.
8 #-----------------------------------------------------------------------
9 #
10 # creator
11 owner=nathans@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 "rm -f $tmp.*; exit \$status" 0 1 2 3 15
20
21 # get standard environment, filters and checks
22 . ./common.rc
23 . ./common.filter
24
25 # real QA test starts here
26 _supported_fs xfs
27 _supported_os Linux
28 _require_scratch
29
30 # real QA test starts here
31 umount $SCRATCH_DEV 2>/dev/null
32 MKFS_OPTIONS="-bsize=4096"
33 MOUNT_OPTIONS="-o noatime"
34 _scratch_mkfs_xfs | _filter_mkfs 2>$tmp.mkfs
35 _scratch_mount
36
37 echo Create some files
38 I=0
39 while [ $I -lt 1000 ]
40 do
41     cp src/itrash.c $SCRATCH_MNT/${I}
42     I=`expr $I + 1`
43 done
44 umount $SCRATCH_DEV
45
46 echo Blat inode clusters
47 src/itrash $SCRATCH_DEV
48
49 _scratch_mount
50
51 echo Attempting bulkstat
52 #src/bstat -q $SCRATCH_MNT
53 xfs_fsr $SCRATCH_MNT
54
55 status=0
56 exit