]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
generic: Test page faults during read and write
authorAndreas Gruenbacher <agruenba@redhat.com>
Fri, 27 Aug 2021 21:02:09 +0000 (23:02 +0200)
committerEryu Guan <guaneryu@gmail.com>
Sun, 29 Aug 2021 14:23:55 +0000 (22:23 +0800)
commitd3cbdabffc4cb28850e97bc7bd8a7a1460db94e5
tree1e3e991b516b186dae8d813ade622f3e10ded2de
parentbdaa90aae7fc3df064ab7f9d695c25e9fa9c4e8e
generic: Test page faults during read and write

Some filesystems have problems when the buffer passed to read or
write is memory-mapped to the file being read from or written to,
and the buffer needs to be faulted in during the read or write.
That's not common, but filesystems are still required to cope with
it, and if they fail this test, then they will also fail more
complex scenarios that involve multiple files.

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
.gitignore
src/Makefile
src/mmap-rw-fault.c [new file with mode: 0644]
tests/generic/647 [new file with mode: 0755]
tests/generic/647.out [new file with mode: 0644]