common/rc: add _scratch_{u}mount_idmapped() helpers
[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 seq=`basename $0`
14 seqres=$RESULT_DIR/$seq
15 echo "QA output created by $seq"
16
17 here=`pwd`
18 status=1        # failure is the default!
19 trap "_cleanup; exit \$status" 0 1 2 3 15
20
21 # get standard environment, filters and checks
22 . ./common/rc
23 . ./common/filter
24
25 _supported_fs generic
26
27 _require_test
28 _require_seek_data_hole
29
30 BASE_TEST_FILE=$TEST_DIR/seek_sanity_testfile
31
32 _require_test_program "seek_sanity_test"
33
34 _cleanup()
35 {
36         eval "rm -f $BASE_TEST_FILE.*"
37 }
38
39 _run_seek_sanity_test $BASE_TEST_FILE > $seqres.full 2>&1 ||
40         _fail "seek sanity check failed!"
41
42 # success, all done
43 status=0
44 exit