[PATCH 4/4] xfstests: speed up 227 by using preallocation
Rich Johnston
rjohnston at sgi.com
Thu Aug 16 14:16:41 CDT 2012
On 07/26/2012 03:35 AM, Dave Chinner wrote:
> From: Dave Chinner <dchinner at redhat.com>
>
> Test 227 (fsr test) creates fragmented fre space by doing lots of
> small writes to sparse offsets ni a file. This seeks the disk heads
> around a lot writing data. We don't need to write data - just
> trigger allocation. Hence use preallocation instead of data writes
> and run at allocation speed rather than data write speed.
>
> Signed-off-by: Dave Chinner <dchinner at redhat.com>
> ---
> 227 | 46 +++++++++++++++++++++++++++++++++-------------
> 1 file changed, 33 insertions(+), 13 deletions(-)
Looks good to me.
Reviewed-by: Rich Johnston <rjohnston at sgi.com>
More information about the xfs
mailing list