2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2021 Red Hat Inc. All Rights Reserved.
7 # This case mmaps several pages of a file, alloc pages, copy data with pages
9 # +-----------------------+
12 # +---------------+---------------+------------
13 # |AAAA| ........ |AAAA| ... |AAAA|AAAA|
14 # +---------------+---------------+------------
19 # This's a regression test cover kernel commit:
20 # 4f06dd92b5d0 ("fuse: fix write deadlock")
23 _begin_fstest auto quick rw
25 # Import common functions.
28 # real QA test starts here
31 _require_test_program "t_mmap_writev_overlap"
33 pagesize=`getconf PAGE_SIZE`
34 testfile=$TEST_DIR/mmap-writev-overlap
35 $XFS_IO_PROG -f -c "truncate 0" $testfile
36 $here/src/t_mmap_writev_overlap -b $pagesize -c 2 -l 64 $testfile
38 echo "Silence is golden"