generic: test MADV_POPULATE_READ with IO errors
[xfstests-dev.git] / tests / generic / 285
1 #! /bin/bash
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.
5 #
6 # FS QA Test No. 285
7 #
8 # SEEK_DATA/SEEK_HOLE sanity tests.
9 #
10 # Improved by Jeff.liu@oracle.com
11 # Creater: josef@redhat.com
12 #
13 . ./common/preamble
14 _begin_fstest auto rw seek
15
16 # Import common functions.
17 . ./common/filter
18
19 _supported_fs generic
20
21 _require_test
22 _require_seek_data_hole
23
24 BASE_TEST_FILE=$TEST_DIR/seek_sanity_testfile
25
26 _require_test_program "seek_sanity_test"
27
28 # Override the default cleanup function.
29 _cleanup()
30 {
31         eval "rm -f $BASE_TEST_FILE.*"
32 }
33
34 _run_seek_sanity_test $BASE_TEST_FILE > $seqres.full 2>&1 ||
35         _fail "seek sanity check failed!"
36
37 # success, all done
38 status=0
39 exit