ioengine: Add fallocate ioengine
authorDmitry Monakhov <dmonakhov@openvz.org>
Wed, 19 Sep 2012 19:22:55 +0000 (23:22 +0400)
committerJens Axboe <axboe@kernel.dk>
Wed, 19 Sep 2012 19:32:17 +0000 (21:32 +0200)
commite615ceafbe3962a35b7a7e06a0c8f4e2c0652c65
treeca89f698212d641023a24c613d955f6797edf563
parent0abea0b7428f930d423640feb4472218b83b8eea
ioengine: Add fallocate ioengine

IO engine that does regular fallocate to simulate data transfer
as fio ioengine.
 DDIR_READ  does fallocate(,mode=FALLOC_FL_KEEP_SIZE,)
 DDIR_WRITE does fallocate(,mode=0) : fallocate with file extention
 DDIR_TRIM  does fallocate(FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE)

This engine may be useful to perform various tests:
1) Generation highly fragmentated files
2) Various fs stress testing in parallel with others io activity

Signed-off-by: Dmitry Monakhov <dmonakhov@openvz.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
HOWTO
Makefile
engines/falloc.c [new file with mode: 0644]