]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
xfstests: coalesce contiguous extents in extent map output
authorAlex Elder <aelder@sgi.com>
Thu, 21 Apr 2011 16:42:38 +0000 (11:42 -0500)
committerAlex Elder <aelder@sgi.com>
Fri, 29 Apr 2011 21:20:22 +0000 (16:20 -0500)
commit9935bd9855c34bccef5d180e9af110d3290c4e93
treeb414f4ccf36998ed17ec70964a112a8b95ca0429
parentbf564e039941da7634af378fd437823709a5bc1b
xfstests: coalesce contiguous extents in extent map output

The specific set of extent sizes allocated to a file is not always
deterministic.  In particular, sometimes a range of unwritten blocks
is covered by a single extent, while in other cases it might be
represented by multiple consecutive unwritten extents.  This can
result in spurious errors being reported in tests that check file
extent maps.

Add a filter that finds adjacent extents in what gets produced for
fiemap and bmap output and coalesces them as if all consective
extents of the same time were really just one extent.  (Note that
as implemented here this applies to all extent types, not just
unwritten extents.)

Update the golden output for test 242 to reflect the change.

Signed-off-by: Alex Elder <aelder@sgi.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
242.out
common.punch