2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2017, Jeff Layton <jlayton@redhat.com>
7 # Test writeback error handling when writing to block devices via pagecache.
8 # See src/fsync-err.c for details of what test actually does.
11 seqres=$RESULT_DIR/$seq
12 echo "QA output created by $seq"
16 status=1 # failure is the default!
17 trap "_cleanup; exit \$status" 0 1 2 3 15
22 rm -rf $tmp.* $testdir
26 # get standard environment, filters and checks
31 # real QA test starts here
34 _require_dm_target error
35 _require_test_program fsync-err
36 _require_test_program dmerror
42 $here/src/fsync-err -d $here/src/dmerror $DMERROR_DEV
45 _dmerror_load_working_table
47 _scratch_mkfs > $seqres.full 2>&1