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 42d4a99b09cb ("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.
38 # we need to be able to execute binaries on scratch
39 _exclude_scratch_mount_option "noexec"
41 # real QA test starts here
43 _scratch_mkfs > $seqres.full 2>&1
44 _scratch_mount >> $seqres.full 2>&1
46 LS=$(which ls --skip-alias --skip-functions)
47 SCRATCH_LS=$SCRATCH_MNT/ls_on_scratch
50 $SCRATCH_LS $SCRATCH_LS | _filter_scratch
54 $SCRATCH_LS $SCRATCH_LS | _filter_scratch