blob: fff25e66470c444e50e42773eccbf0a5a442ed61 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
#! /bin/bash
# SPDX-License-Identifier: GPL-2.0
# Copyright (c) 2021 Red Hat Inc. All Rights Reserved.
#
# FS QA Test 638
#
# This case mmaps several pages of a file, alloc pages, copy data with pages
# overlapping, e.g:
# +-----------------------+
# | (copy) |
# | V
# +---------------+---------------+------------
# |AAAA| ........ |AAAA| ... |AAAA|AAAA|
# +---------------+---------------+------------
# | ^
# | (copy) |
# +------------+
#
# This's a regression test cover kernel commit:
# 4f06dd92b5d0 ("fuse: fix write deadlock")
#
. ./common/preamble
_begin_fstest auto quick rw
# Import common functions.
. ./common/filter
# real QA test starts here
_supported_fs generic
_require_test
_require_test_program "t_mmap_writev_overlap"
pagesize=`getconf PAGE_SIZE`
testfile=$TEST_DIR/mmap-writev-overlap
$XFS_IO_PROG -f -c "truncate 0" $testfile
$here/src/t_mmap_writev_overlap -b $pagesize -c 2 -l 64 $testfile
echo "Silence is golden"
# success, all done
status=0
exit
|