[LTP] [PATCH] Use fallocate() to create loop device backing file

Jan Stancek jstancek@redhat.com
Thu Jul 9 09:46:58 CEST 2020


----- Original Message -----
> Creating large loop device backing files using tst_fill_file() on shared
> testing machines  may lead to performance issues and timeouts. Preallocating
> space using fallocate() is fast and sufficient.
> 
> Space allocation will fall back to tst_fill_file() if fallocate() fails for
> any
> other reason than lack of space.
> 
> Signed-off-by: Martin Doucha <mdoucha@suse.cz>

Acked-by: Jan Stancek <jstancek@redhat.com>



More information about the ltp mailing list