generic: add write vs fcollapse test
authorDave Chinner <david@fromorbit.com>
Mon, 29 Sep 2014 02:58:24 +0000 (12:58 +1000)
committerDave Chinner <david@fromorbit.com>
Mon, 29 Sep 2014 02:58:24 +0000 (12:58 +1000)
commitcac7b427a8d0bfae73abc406ddb1b33d420a0369
tree131b1c6719f7fa5c11d22ebc4f078f545735855b
parent10b49039a515ac9d9bb5cb019789da30d5e20aec
generic: add write vs fcollapse test

This test exposed a problem with XFS where it failed to write back a
partial page correctly during a fcollapse operation. This left a
stray dirty buffer on the page, and hence invalidation of the page
then failed of the fcollapse returned an EBUSY error.

Make this a generic test so that we can ensure that all filesystems
handle the case correctly. Test case originally worked out and
written by Brian Foster.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
tests/generic/031 [new file with mode: 0644]
tests/generic/031.out [new file with mode: 0644]
tests/generic/group