2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2012 SGI. All Rights Reserved.
7 # Makes calls to XFS_IOC_ZERO_RANGE and checks tossed ranges
9 # Nothing should be tossed unless the range includes a page boundry
11 # Primarily tests page boundries and boundries that are
12 # off-by-one to ensure we're only tossing what's expected
15 seqres=$RESULT_DIR/$seq
16 echo "QA output created by $seq"
20 status=1 # failure is the default!
21 trap "exit \$status" 0 1 2 3 15
23 # get standard environment, filters and checks
28 # real QA test starts here
30 # Modify as appropriate.
34 _require_xfs_io_command "zero"
36 testfile=$TEST_DIR/290.$$
38 _test_block_boundaries 4096 zero _filter_xfs_io_unique $testfile