3 #-----------------------------------------------------------------------
4 # Copyright (c) 2007 Silicon Graphics, Inc. All Rights Reserved.
6 # This program is free software; you can redistribute it and/or
7 # modify it under the terms of the GNU General Public License as
8 # published by the Free Software Foundation.
10 # This program is distributed in the hope that it would be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
15 # You should have received a copy of the GNU General Public License
16 # along with this program; if not, write the Free Software Foundation,
17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19 #-----------------------------------------------------------------------
23 # Check the filestreams allocator is doing its job.
24 # Multi-file data streams should always write into seperate AGs.
30 echo "QA output created by $seq"
35 status=1 # failure is the default!
36 trap "_cleanup; exit \$status" 0 1 2 3 15
44 # get standard environment, filters and checks
47 . ./common.filestreams
49 # real QA test starts here
51 _supported_os IRIX Linux
55 _check_filestreams_support || _notrun "filestreams not available"
57 # test reaper works by setting timeout low. Expected to fail
58 # for buffered, succeed for direct I/O.
59 _set_stream_timeout_centisecs 50
61 _test_streams 8 16 4 8 3 1 0 fail
62 _test_streams 64 16 20 10 1 0 1