0d1b441ecc2ff31fcb014415764223450119a0b7
[xfstests-dev.git] / tests / xfs / 172
1 #! /bin/bash
2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2007 Silicon Graphics, Inc.  All Rights Reserved.
4 #
5 # FSQA Test No. 172
6 #
7 # Check the filestreams allocator is doing its job.
8 # Multi-file data streams should always write into seperate AGs.
9 #
10 . ./common/preamble
11 _begin_fstest rw filestreams
12
13 # Import common functions.
14 . ./common/filter
15 . ./common/filestreams
16
17 # real QA test starts here
18 _supported_fs xfs
19
20 _require_scratch
21
22 _check_filestreams_support || _notrun "filestreams not available"
23
24 # test reaper works by setting timeout low. Expected to fail
25 # for buffered, succeed for direct I/O.
26 _set_stream_timeout_centisecs 50
27
28 _test_streams 8 16 4 8 3 1 0 fail
29 _test_streams 64 16 20 10 1 0 1
30
31 status=0
32 exit
33