2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2011 Oracle Inc. All Rights Reserved.
4 # Copyright (c) 2011 Red Hat. All Rights Reserved.
8 # SEEK_DATA/SEEK_HOLE sanity tests.
10 # Improved by Jeff.liu@oracle.com
11 # Creater: josef@redhat.com
14 _begin_fstest auto rw seek
16 # Import common functions.
22 _require_seek_data_hole
24 BASE_TEST_FILE=$TEST_DIR/seek_sanity_testfile
26 _require_test_program "seek_sanity_test"
28 # Override the default cleanup function.
31 eval "rm -f $BASE_TEST_FILE.*"
34 _run_seek_sanity_test $BASE_TEST_FILE > $seqres.full 2>&1 ||
35 _fail "seek sanity check failed!"