]> git-server-git.apps.pok.os.sepia.ceph.com Git - xfstests-dev.git/commit
xfstests: Speed up test 042
authorDave Chinner <dchinner@redhat.com>
Mon, 14 Feb 2011 00:22:07 +0000 (11:22 +1100)
committerDave Chinner <david@fromorbit.com>
Mon, 14 Feb 2011 00:22:07 +0000 (11:22 +1100)
commit186b6bd2e875a5f1a8c25426b41d4df7f4bec7d7
tree313a76925b85a1561ad8ca5e2a601574d3120852
parent2a0cb69ee78219044a6ea4aae2c5f652351a83fb
xfstests: Speed up test 042

test 042 generates a worst-case fragmented filesystem and uses it to
test xfs_fsr. It uses small 4k files to generate the hole-space-hole
pattern that fragments free space badly. It is much faster to
generate the same pattern by creating a single large file and
punching holes in it.  Also, instead of writing large files to
create unfragmented space, just use preallocation so we don't have
to write the data to disk.

These changes reduce the runtime of the test on a single SATA drive
from 106s to 27s.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Alex Elder <aelder@sgi.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
042
042.out