overlay: run unionmount testsuite test cases
[xfstests-dev.git] / tests / generic / 008
1 #! /bin/bash
2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright 2014 (C) Red Hat, Inc., Lukas Czerner <lczerner@redhat.com>
4 #
5 # FS QA Test No. 008
6 #
7 # Makes calls to fallocate zero range and checks tossed ranges
8 #
9 # Primarily tests page boundries and boundries that are
10 #  off-by-one to ensure we're only tossing what's expected
11 #
12 seq=`basename $0`
13 seqres=$RESULT_DIR/$seq
14 echo "QA output created by $seq"
15
16 here=`pwd`
17 tmp=/tmp/$$
18 status=1        # failure is the default!
19 trap "exit \$status" 0 1 2 3 15
20
21 # get standard environment, filters and checks
22 . ./common/rc
23 . ./common/filter
24 . ./common/punch
25
26 # real QA test starts here
27
28 # Modify as appropriate.
29 _supported_os Linux
30
31 _require_xfs_io_command "fzero"
32 _require_test
33
34 testfile=$TEST_DIR/008.$$
35
36 _test_block_boundaries 1024 fzero _filter_xfs_io_unique $testfile
37 _test_block_boundaries 2048 fzero _filter_xfs_io_unique $testfile
38 _test_block_boundaries 4096 fzero _filter_xfs_io_unique $testfile
39 _test_block_boundaries 65536 fzero _filter_xfs_io_unique $testfile
40
41 # success, all done
42 status=0
43 exit