xfs/007: fix regressions on V4 filesystems
[xfstests-dev.git] / tests / xfs / 242
1 #! /bin/bash
2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2010 Red Hat.  All Rights Reserved.
4 #
5 # FS QA Test No. 242
6 #
7 # Test XFS_IOC_ZERO_RANGE
8 #
9 . ./common/preamble
10 _begin_fstest auto quick prealloc zero
11
12 # Import common functions.
13 . ./common/filter
14 . ./common/punch
15
16 # real QA test starts here
17 _supported_fs xfs
18 _require_test
19
20 _require_xfs_io_command "falloc"
21 _require_xfs_io_command "zero"
22
23 testfile=$TEST_DIR/242.$$
24
25 _test_generic_punch resvsp unresvsp zero 'bmap -p' _filter_bmap $testfile
26
27 status=0 ; exit