Add extra test cases for growfs
[xfstests-dev.git] / 171
1 #! /bin/sh
2 # FSQA Test No. 171
3 #
4 # Check the filestreams allocator is doing its job.
5 # Multi-file data streams should always write into seperate AGs.
6 #
7 #-----------------------------------------------------------------------
8 #  Copyright (c) 2007 Silicon Graphics, Inc.  All Rights Reserved.
9 #-----------------------------------------------------------------------
10 #
11 # creator
12 owner=dgc@sgi.com
13
14 seq=`basename $0`
15 echo "QA output created by $seq"
16
17 here=`pwd`
18 tmp=/tmp/$$
19 rm -f $seq.full
20 status=1    # failure is the default!
21 trap "_cleanup; exit \$status" 0 1 2 3 15
22
23 _cleanup()
24 {
25         cd /
26         rm -f $tmp.*
27 }
28
29 # get standard environment, filters and checks
30 . ./common.rc
31 . ./common.filter
32 . ./common.filestreams
33
34 # real QA test starts here
35 _supported_fs xfs
36 _supported_os Linux
37
38 _require_scratch
39
40 _check_filestreams_support || _notrun "filestreams not available"
41
42 # test large numbers of files, single I/O per file, 120s timeout
43 # Get close to filesystem full.
44 # 128 = ENOSPC
45 # 120 = 93.75% full, gets repeatable failures
46 # 112 = 87.5% full, should reliably succeed but doesn't *FIXME*
47 # 100 = 78.1% full, should reliably succeed
48 _set_stream_timeout_centisecs 12000
49
50 _test_streams 64 16 8 100 1 1 0
51 _test_streams 64 16 8 100 1 1 1
52 _test_streams 64 16 8 100 1 0 0
53 _test_streams 64 16 8 100 1 0 1
54
55 status=0
56 exit
57