reflink: fix fragmentation tests to work on >4k block size filesystems
authorDarrick J. Wong <darrick.wong@oracle.com>
Wed, 23 Mar 2016 06:37:31 +0000 (17:37 +1100)
committerDave Chinner <david@fromorbit.com>
Wed, 23 Mar 2016 06:37:31 +0000 (17:37 +1100)
commit3907442866dba11776da267e24856e2c0bb6e2a1
tree0fdce99104dc8ebc7ca8063044f9e9a5f69d2978
parent64f56fd899161fb88d6783099fcf60405b9a4d3d
reflink: fix fragmentation tests to work on >4k block size filesystems

For tests that only overwrite part of a file, only consider the number
of extents in the *rewritten* blocks when deciding if the FS
fragmentation performance is satisfactory.

(Also slip in a fix for xfs/127 so that it formats correctly when we
specify big blocksizes via MKFS_OPTIONS.)

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dave Chinner <david@fromorbit.com>
13 files changed:
tests/xfs/127
tests/xfs/215
tests/xfs/218
tests/xfs/219
tests/xfs/221
tests/xfs/223
tests/xfs/224
tests/xfs/225
tests/xfs/226
tests/xfs/228
tests/xfs/230
tests/xfs/231
tests/xfs/232