blob: b9ead341f3c820d9d65615a0a19310424872f962 (
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
|
#! /bin/bash
# SPDX-License-Identifier: GPL-2.0
# Copyright (c) 2007 Silicon Graphics, Inc. All Rights Reserved.
#
#
# FSQA Test No. 170
#
# Check the filestreams allocator is doing its job.
# Multi-file data streams should always write into seperate AGs.
#
. ./common/preamble
_begin_fstest rw filestreams auto quick
# Import common functions.
. ./common/filter
. ./common/filestreams
# real QA test starts here
_supported_fs xfs
_require_scratch
_check_filestreams_support || _notrun "filestreams not available"
# test small stream, multiple I/O per file, 30s timeout
_set_stream_timeout_centisecs 3000
# This test checks that the filestreams allocator never allocates space in any
# given AG into more than one stream when there's plenty of space on the
# filesystem. Newer feature sets (e.g. reflink) have increased the size of
# the log for small filesystems, so we make sure there's one more AG than
# filestreams to encourage the allocator to skip whichever AG owns the log.
#
# Exercise 9x 22MB AGs, 4 filestreams, 8 files per stream, and 3MB per file.
_test_streams 9 22 4 8 3 0 0
_test_streams 9 22 4 8 3 1 0
_test_streams 9 22 4 8 3 0 1
_test_streams 9 22 4 8 3 1 1
status=0
exit
|