Commit Graph

4 Commits

Author SHA1 Message Date
Dave Chinner 186b6bd2e8 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>
2011-02-14 11:22:07 +11:00
Nathan Scott 0e7e7cc5b4 bozo - thats what i get for editing the output by hand! 2001-02-24 04:10:47 +00:00
Nathan Scott 27f1f5d7a7 use the real fsr binary. 2001-02-24 03:53:46 +00:00
Nathan Scott 27fba05e66 cmd/xfs/stress/001 1.6 Renamed to cmd/xfstests/001 2001-01-15 05:01:19 +00:00