Avoid opening files until they are used
authorJens Axboe <jens.axboe@oracle.com>
Thu, 5 Mar 2009 09:13:58 +0000 (10:13 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Thu, 5 Mar 2009 09:13:58 +0000 (10:13 +0100)
commitdf9c26b10275a631e83e7cc92d5f7384998b2c49
treed7abfac9404396fe82d0a3f3c5c99f684866544f
parent4e6ea2f1e9b7da6d7d1057670fcc19f063e46fd4
Avoid opening files until they are used

Fio still opens and creates all files, just to check the size of them. Add
a specialized IO engine op for getting the size of a file and use that
instead.

This also cleans a lot of things up. Note that the IO engine version is now
bumped to 10, meaning that external engines will have to separate the
file open from the size checking.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
13 files changed:
engines/guasi.c
engines/libaio.c
engines/mmap.c
engines/posixaio.c
engines/sg.c
engines/solarisaio.c
engines/splice.c
engines/sync.c
engines/syslet-rw.c
filesetup.c
fio.c
fio.h
ioengines.c