2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2010 Red Hat. All Rights Reserved.
7 # Test fallocate hole punching
10 _begin_fstest auto quick prealloc punch
12 # Import common functions.
16 # real QA test starts here
20 _require_xfs_io_command "falloc"
21 _require_xfs_io_command "fpunch"
22 _require_xfs_io_command "fiemap"
24 testfile=$TEST_DIR/252.$$
26 # Standard punch hole tests
27 _test_generic_punch falloc fpunch fpunch fiemap _filter_fiemap $testfile
29 # Delayed allocation punch hole tests
30 _test_generic_punch -d falloc fpunch fpunch fiemap _filter_fiemap $testfile
32 # Multi hole punch tests
33 _test_generic_punch -k falloc fpunch fpunch fiemap _filter_fiemap $testfile
35 # Delayed allocation multi punch hole tests
36 _test_generic_punch -d -k falloc fpunch fpunch fiemap _filter_fiemap $testfile