2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2006 Silicon Graphics, Inc. All Rights Reserved.
7 # Test for xfs_io mmap read problem
10 _begin_fstest rw auto quick
12 # Import common functions.
15 # real QA test starts here
19 _scratch_mkfs >/dev/null 2>&1
22 # create file, mmap a region and mmap read it
23 file=$SCRATCH_MNT/mmap
25 $XFS_IO_PROG -f -c "pwrite 0 1024k" -c "mmap 64k 64k" -c "mread -r" $file > /dev/null