2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2017 Red Hat, Inc. All Rights Reserved.
7 # Another SEEK_DATA/SEEK_HOLE sanity test.
10 _begin_fstest auto quick rw seek prealloc
14 BASE_TEST_FILE=$TEST_DIR/seek_sanity_testfile
16 # Override the default cleanup function.
19 rm -f $tmp.* $BASE_TEST_FILE.*
22 # Import common functions.
28 _require_seek_data_hole
29 # All the seek sanity test cases here do falloc
30 _require_xfs_io_command "falloc"
32 _require_test_program "seek_sanity_test"
34 _run_seek_sanity_test -s 17 -e 17 $BASE_TEST_FILE > $seqres.full 2>&1 ||
35 _fail "seek sanity check failed!"
38 echo "Silence is golden"