summaryrefslogtreecommitdiff
path: root/tests/xfs/110
blob: 596057ef09e41283af76e2281b50914d54587008 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#! /bin/bash
# SPDX-License-Identifier: GPL-2.0
# Copyright (c) 2005 Silicon Graphics, Inc.  All Rights Reserved.
#
# FS QA Test No. 110
#
# Incorrect dir2 freetab warning case from Masanori Tsuda.
#
. ./common/preamble
_begin_fstest repair auto

# Import common functions.
. ./common/filter

# real QA test starts here
_supported_fs xfs
_require_scratch

# real QA test starts here
_scratch_unmount 2>/dev/null
_scratch_mkfs_xfs | _filter_mkfs 2>$tmp.mkfs

STR1=AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
STR2=BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB
STR3=CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC

#------------------------------------------------
# Free Block No. | Data Entry No. (Start - End) |
#       1        |     10000001 - 10030599      |
#       2        |     10030600 - 10061199      |
#       3        |     10061200 - 10091799      |
#------------------------------------------------
# 15 Data Entries / 1 Data Block                |
#------------------------------------------------

_scratch_mount
mkdir -p $SCRATCH_MNT/test

I=10000001
E=10030600
while [ $I -le $E ]
do
    echo > $SCRATCH_MNT/test/${STR1}${STR2}${STR3}${I}
    let I=$I+1
    [ $[$I % 1000] -eq 0 ] && echo "Created $I/$E"
done
wait

sync

I=10030585
E=10030599
while [ $I -le $E ]
do
    rm $SCRATCH_MNT/test/${STR1}${STR2}${STR3}${I} &
    let I=$I+1
done
wait

status=0
exit