2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2013 Alibaba Group. All Rights Reserved.
7 # Test Generic fallocate hole punching w/o unwritten extent
10 seqres=$RESULT_DIR/$seq
11 echo "QA output created by $seq"
15 status=1 # failure is the default!
16 trap "_cleanup; exit \$status" 0 1 2 3 15
24 # get standard environment, filters and checks
29 # real QA test starts here
33 _require_xfs_io_command "fpunch"
34 _require_xfs_io_command "fiemap"
36 testfile=$TEST_DIR/$seq.$$
38 # Standard punch hole tests
39 _test_generic_punch -u pwrite fpunch fpunch fiemap _filter_hole_fiemap $testfile
41 # Delayed allocation punch hole tests
42 _test_generic_punch -u -d pwrite fpunch fpunch fiemap _filter_hole_fiemap $testfile
44 # Multi hole punch tests
45 _test_generic_punch -u -k pwrite fpunch fpunch fiemap _filter_hole_fiemap $testfile
47 # Delayed allocation multi punch hole tests
48 _test_generic_punch -u -d -k pwrite fpunch fpunch fiemap _filter_hole_fiemap $testfile