2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2017 Intel Corporation. All Rights Reserved.
7 # This is a regression test for kernel patch:
8 # commit fd96b8da68d3 ("ext4: fix fault handling when mounted with -o dax,ro")
9 # created by Ross Zwisler <ross.zwisler@linux.intel.com>
12 seqres=$RESULT_DIR/$seq
13 echo "QA output created by $seq"
17 status=1 # failure is the default!
18 trap "_cleanup; exit \$status" 0 1 2 3 15
26 # get standard environment, filters and checks
30 # remove previous $seqres.full before test
33 # Modify as appropriate.
37 # we need to be able to execute binaries on scratch
38 _exclude_scratch_mount_option "noexec"
40 # real QA test starts here
42 _scratch_mkfs > $seqres.full 2>&1
43 _scratch_mount >> $seqres.full 2>&1
45 LS=$(which ls --skip-alias --skip-functions)
46 SCRATCH_LS=$SCRATCH_MNT/ls_on_scratch
49 $SCRATCH_LS $SCRATCH_LS | _filter_scratch
53 $SCRATCH_LS $SCRATCH_LS | _filter_scratch