generic/611: Use _getfattr instead of GETFATTR_PROG
[xfstests-dev.git] / tests / generic / 445
1 #! /bin/bash
2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2017 Red Hat, Inc.  All Rights Reserved.
4 #
5 # FS QA Test 445
6 #
7 # Another SEEK_DATA/SEEK_HOLE sanity test.
8 #
9 seq=`basename $0`
10 seqres=$RESULT_DIR/$seq
11 echo "QA output created by $seq"
12
13 here=`pwd`
14 tmp=$$
15 status=1        # failure is the default!
16 trap "_cleanup; exit \$status" 0 1 2 3 15
17
18 BASE_TEST_FILE=$TEST_DIR/seek_sanity_testfile
19
20 _cleanup()
21 {
22         rm -f $tmp.* $BASE_TEST_FILE.*
23 }
24
25 # get standard environment, filters and checks
26 . ./common/rc
27 . ./common/filter
28
29 _supported_fs generic
30
31 _require_test
32 _require_seek_data_hole
33 # All the seek sanity test cases here do falloc
34 _require_xfs_io_command "falloc"
35
36 _require_test_program "seek_sanity_test"
37
38 _run_seek_sanity_test -s 17 -e 17 $BASE_TEST_FILE > $seqres.full 2>&1 ||
39         _fail "seek sanity check failed!"
40
41 # success, all done
42 echo "Silence is golden"
43 status=0
44 exit