generic: add mmap write vs truncate/remap test
authorDave Chinner <david@fromorbit.com>
Mon, 29 Sep 2014 02:57:37 +0000 (12:57 +1000)
committerDave Chinner <david@fromorbit.com>
Mon, 29 Sep 2014 02:57:37 +0000 (12:57 +1000)
commit10b49039a515ac9d9bb5cb019789da30d5e20aec
tree079990a2630bd29f113f7f322cf222bc8bf849d9
parentd7b517da5f689aa35fcb50ab26feec189a7e246c
generic: add mmap write vs truncate/remap test

This test exposed a problem with mapped writes to the tail page of a
file in XFS and potentially ext4. Eric did all the hard work of
taking the bug report and generating the reproducable test case on
ext4.  Make it a generic test so that we can ensure that all
filesystems handle the case correctly.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
tests/generic/030 [new file with mode: 0644]
tests/generic/030.out [new file with mode: 0644]
tests/generic/group