2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2010 Christoph Hellwig. All Rights Reserved.
7 # Check that truncation after failed writes does not zero too much data.
9 # Based on a bug report and testcase from
10 # Marius Tolzmann <tolzmann@molgen.mpg.de>
13 seqres=$RESULT_DIR/$seq
14 echo "QA output created by $seq"
18 status=1 # failure is the default!
20 # get standard environment, filters and checks
24 # real QA test starts here
28 file=$TEST_DIR/mmap-writev
36 trap "_cleanup ; exit \$status" 0 1 2 3 15
38 echo -n "cccccccccc" > $file
39 $here/src/t_mmap_writev $file $file.NEW