Clean up whitespace problems with 166.
[xfstests-dev.git] / 110
1 #! /bin/sh
2 # FS QA Test No. 108
3 #
4 # Incorrect dir2 freetab warning case from Masanori Tsuda.
5 #
6 #-----------------------------------------------------------------------
7 # Copyright (c) 2005 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 _scratch_mkfs_xfs | _filter_mkfs 2>$tmp.mkfs
33
34 STR1=AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
35 STR2=BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB
36 STR3=CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
37
38 #------------------------------------------------
39 # Free Block No. | Data Entry No. (Start - End) |
40 #       1        |     10000001 - 10030599      |
41 #       2        |     10030600 - 10061199      |
42 #       3        |     10061200 - 10091799      |
43 #------------------------------------------------
44 # 15 Data Entries / 1 Data Block                |
45 #------------------------------------------------
46
47 _scratch_mount
48 mkdir -p $SCRATCH_MNT/test
49
50 I=10000001
51 E=10030600
52 while [ $I -le $E ]
53 do
54     echo > $SCRATCH_MNT/test/${STR1}${STR2}${STR3}${I}
55     I=`expr $I + 1`
56     [ `expr $I % 1000` -eq 0 ] && echo "Created $I/$E"
57 done
58
59 sync
60
61 I=10030585
62 E=10030599
63 while [ $I -le $E ]
64 do
65     rm $SCRATCH_MNT/test/${STR1}${STR2}${STR3}${I} &
66     I=`expr $I + 1`
67 done
68
69 _check_scratch_fs
70
71 status=0
72 exit