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 _begin_fstest auto quick rw
15 # Import common functions.
18 # real QA test starts here
22 file=$TEST_DIR/mmap-writev
24 # Override the default cleanup function.
31 echo -n "cccccccccc" > $file
32 $here/src/t_mmap_writev $file $file.NEW