generic: copy_file_range swapfile test
[xfstests-dev.git] / tests / generic / 428
1 #! /bin/bash
2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2017 Intel Corporation.  All Rights Reserved.
4 #
5 # FS QA Test 428
6 #
7 # This is a regression test for kernel patch:
8 #  dax: fix data corruption due to stale mmap reads
9 # created by Ross Zwisler <ross.zwisler@linux.intel.com>
10 #
11 seq=`basename $0`
12 seqres=$RESULT_DIR/$seq
13 echo "QA output created by $seq"
14
15 here=`pwd`
16 tmp=/tmp/$$
17 status=1        # failure is the default!
18 trap "_cleanup; exit \$status" 0 1 2 3 15
19
20 _cleanup()
21 {
22         cd /
23         rm -f $tmp.*
24 }
25
26 # get standard environment, filters and checks
27 . ./common/rc
28 . ./common/filter
29
30 # remove previous $seqres.full before test
31 rm -f $seqres.full
32
33 # Modify as appropriate.
34 _supported_fs generic
35 _supported_os Linux
36 _require_test
37 _require_test_program "t_mmap_stale_pmd"
38
39 # real QA test starts here
40 src/t_mmap_stale_pmd $TEST_DIR/testfile
41
42 # success, all done
43 echo "Silence is golden"
44 status=0
45 exit