This patchset is to verify whether memory failure mechanism still works with the fsdax-rmap feature. With this feature, fsdax and reflink can be used together[1]. So, we also test it for reflinked files in filesystem mounted with dax option. Memo: (quoted from v2[2]): > Never mind. I'd like to merge these tests after your kernel patchset about > "Add reflink&dedupe support for fsdax" be merged at first. To avoid you > might add/change something. And I need to see the test works on offical > kernel at least, before merging it. So feel free to ping me, if I forget > this patchset at that time [1] https://lore.kernel.org/linux-xfs/20220508143620.1775214-1-ruansy.fnst@xxxxxxxxxxx/ [2] https://lore.kernel.org/fstests/20220513031411.2369314-1-ruansy.fnst@xxxxxxxxxxx/T/#mb0197877ad9f89e2de009572c02ac1cdd4f7c8a7 Changes since v2: 1. Fixed typo in .out files Changes since v1: 1. Fixed typo 2. Use `sysconf(_SC_PAGESIZE)` as page size, instead of the fixed 4KiB 3. Use `$(get_page_size)` in testcase 4. Unify the style of comments => /* */ Shiyang Ruan (3): xfs: add memory failure test for dax mode xfs: add memory failure test for dax&reflink mode xfs: add memory failure test for partly-reflinked&dax file .gitignore | 1 + src/Makefile | 3 +- src/t_mmap_cow_memory_failure.c | 157 ++++++++++++++++++++++++++++++++ tests/xfs/900 | 48 ++++++++++ tests/xfs/900.out | 9 ++ tests/xfs/901 | 49 ++++++++++ tests/xfs/901.out | 9 ++ tests/xfs/902 | 52 +++++++++++ tests/xfs/902.out | 9 ++ 9 files changed, 336 insertions(+), 1 deletion(-) create mode 100644 src/t_mmap_cow_memory_failure.c create mode 100755 tests/xfs/900 create mode 100644 tests/xfs/900.out create mode 100755 tests/xfs/901 create mode 100644 tests/xfs/901.out create mode 100755 tests/xfs/902 create mode 100644 tests/xfs/902.out -- 2.35.1