xfs: test rmapbt updates are correct with insert/collapse range
authorDarrick J. Wong <darrick.wong@oracle.com>
Thu, 31 Aug 2017 14:47:41 +0000 (07:47 -0700)
committerEryu Guan <eguan@redhat.com>
Sun, 3 Sep 2017 04:20:00 +0000 (12:20 +0800)
commit1c7f4dbf37c829daff61db8360542aca69fa5344
tree132f058e52808cd3aca65314293692e75d95f94d
parent5cec561327e0fe523593b7458359ccc4dbfa4ff2
xfs: test rmapbt updates are correct with insert/collapse range

Make sure that we update the rmapbt correctly when we collapse-range
a file and the extents on both sides of the hole can be merged.  We
can construct this pretty trivially with insert-range and write, so
test that too.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
src/punch-alternating.c
tests/xfs/114 [new file with mode: 0755]
tests/xfs/114.out [new file with mode: 0644]
tests/xfs/group