2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (C) 2019, CTERA Networks. All Rights Reserved.
7 # Check that SEEK_HOLE can find a punched hole.
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
18 # get standard environment, filters and checks
24 _require_seek_data_hole
25 _require_xfs_io_command "fpunch"
27 base_test_file=$TEST_DIR/seek_sanity_testfile.$seq
29 _require_test_program "seek_sanity_test"
35 rm -f $base_test_file*
38 echo "Silence is golden"
40 _run_seek_sanity_test -s 21 -e 21 $base_test_file > $seqres.full 2>&1 ||
41 _fail "seek sanity check failed!"