xfstests: move xfs specific tests out of top directory
[xfstests-dev.git] / tests / xfs / 170
1 #! /bin/bash
2 #
3 # FSQA Test No. 170
4 #
5 # Check the filestreams allocator is doing its job.
6 # Multi-file data streams should always write into seperate AGs.
7 #
8 #-----------------------------------------------------------------------
9 # Copyright (c) 2007 Silicon Graphics, Inc.  All Rights Reserved.
10 #
11 # This program is free software; you can redistribute it and/or
12 # modify it under the terms of the GNU General Public License as
13 # published by the Free Software Foundation.
14 #
15 # This program is distributed in the hope that it would be useful,
16 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18 # GNU General Public License for more details.
19 #
20 # You should have received a copy of the GNU General Public License
21 # along with this program; if not, write the Free Software Foundation,
22 # Inc.,  51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
23 #
24 #-----------------------------------------------------------------------
25 #
26
27 seq=`basename $0`
28 echo "QA output created by $seq"
29
30 here=`pwd`
31 tmp=/tmp/$$
32 rm -f $seq.full
33 status=1    # failure is the default!
34 trap "_cleanup; exit \$status" 0 1 2 3 15
35
36 _cleanup()
37 {
38         cd /
39         rm -f $tmp.*
40 }
41
42 # get standard environment, filters and checks
43 . ./common.rc
44 . ./common.filter
45 . ./common.filestreams
46
47 # real QA test starts here
48 _supported_fs xfs
49 _supported_os IRIX Linux
50
51 _require_scratch
52
53 _check_filestreams_support || _notrun "filestreams not available"
54
55 # test small stream, multiple I/O per file, 30s timeout
56 _set_stream_timeout_centisecs 3000
57
58 # test streams does a mkfs and mount
59 _test_streams 8 16 4 8 3 0 0
60 _test_streams 8 16 4 8 3 1 0
61 _test_streams 8 16 4 8 3 0 1
62 _test_streams 8 16 4 8 3 1 1
63
64 status=0
65 exit
66