generic: test MADV_POPULATE_READ with IO errors
[xfstests-dev.git] / tests / xfs / 290
1 #! /bin/bash
2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2012 SGI.  All Rights Reserved.
4 #
5 # FS QA Test No. 290
6 #
7 # Makes calls to XFS_IOC_ZERO_RANGE and checks tossed ranges
8 #
9 # Nothing should be tossed unless the range includes a page boundry
10 #
11 # Primarily tests page boundries and boundries that are
12 #  off-by-one to ensure we're only tossing what's expected
13 #
14 . ./common/preamble
15 _begin_fstest auto rw prealloc quick ioctl zero
16
17 # Import common functions.
18 . ./common/filter
19 . ./common/punch
20
21 # real QA test starts here
22
23 # Modify as appropriate.
24 _supported_fs xfs
25
26 _require_test
27 _require_xfs_io_command "zero"
28
29 testfile=$TEST_DIR/290.$$
30
31 _test_block_boundaries 4096 zero _filter_xfs_io_unique $testfile
32
33 # success, all done
34 status=0
35 exit