generic: check reflink multiple mmap write
authorDarrick J. Wong <darrick.wong@oracle.com>
Fri, 11 Oct 2019 21:41:20 +0000 (14:41 -0700)
committerEryu Guan <guaneryu@gmail.com>
Sun, 13 Oct 2019 13:01:41 +0000 (21:01 +0800)
commit22b06b010cc64cdb3a1d064f42e6ccd2534ab535
treee59d2c5447481806e00f841d8dcd918a339d67d3
parent96b5068aa2b9281317daeca7c14708293adfb102
generic: check reflink multiple mmap write

Add a test to make sure that we can handle multiple memory mappings to a
physical storage extent shared by multiple files, and that we can handle
the copy on write operation without error.  Make sure we can also handle
mappings at different offsets in the page cache.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
.gitignore
src/Makefile
src/mmap-write-concurrent.c [new file with mode: 0644]
tests/generic/578 [new file with mode: 0755]
tests/generic/578.out [new file with mode: 0644]
tests/generic/group