2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2015 Samsung Electronics. All Rights Reserved.
5 # FS QA Test No. generic/060
7 # Delayed allocation insert range tests
8 # This testcase is one of the 4 testcases which tries to
9 # test various corner cases for finsert range functionality over different
10 # type of extents. These tests are based on generic/255 test case.
11 # For the type of tests, check the description of _test_generic_punch
14 seqres=$RESULT_DIR/$seq
15 echo "QA output created by $seq"
19 status=1 # failure is the default!
26 trap "_cleanup ; exit \$status" 0 1 2 3 15
28 # get standard environment, filters and checks
29 # we need to include common/punch to get defination fo filter functions
34 # real QA test starts here
38 _require_xfs_io_command "fpunch"
39 _require_xfs_io_command "falloc"
40 _require_xfs_io_command "fiemap"
41 _require_xfs_io_command "finsert"
43 testfile=$TEST_DIR/$seq.$$
45 _test_generic_punch -d falloc fpunch finsert fiemap _filter_hole_fiemap $testfile