2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright 2014 (C) Red Hat, Inc., Lukas Czerner <lczerner@redhat.com>
7 # Makes calls to fallocate zero range and checks tossed ranges
9 # Primarily tests page boundries and boundries that are
10 # off-by-one to ensure we're only tossing what's expected
13 seqres=$RESULT_DIR/$seq
14 echo "QA output created by $seq"
18 status=1 # failure is the default!
19 trap "exit \$status" 0 1 2 3 15
21 # get standard environment, filters and checks
26 # real QA test starts here
28 # Modify as appropriate.
30 _require_xfs_io_command "fzero"
33 testfile=$TEST_DIR/008.$$
35 _test_block_boundaries 1024 fzero _filter_xfs_io_unique $testfile
36 _test_block_boundaries 2048 fzero _filter_xfs_io_unique $testfile
37 _test_block_boundaries 4096 fzero _filter_xfs_io_unique $testfile
38 _test_block_boundaries 65536 fzero _filter_xfs_io_unique $testfile