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 _begin_fstest blockdev eio
13 # Override the default cleanup function.
17 rm -rf $tmp.* $testdir
21 # Import common functions.
25 # real QA test starts here
27 _require_dm_target error
28 _require_test_program fsync-err
29 _require_test_program dmerror
33 $here/src/fsync-err -d $here/src/dmerror $DMERROR_DEV
36 _dmerror_load_working_table
38 _scratch_mkfs > $seqres.full 2>&1