Revamp file open/close handling
authorJens Axboe <jens.axboe@oracle.com>
Thu, 8 Mar 2007 11:43:13 +0000 (12:43 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Thu, 8 Mar 2007 11:43:13 +0000 (12:43 +0100)
commitb5af82930ccfd7dda6a1b11794efb452eb76d8dc
tree7acc2f81e99019cfdbbb725e4deefdf6c8f8a02c
parent7bdce1bde82e37c8876270853840c1d09d760b67
Revamp file open/close handling

Some IO engines need special handling for opening and closing
files, and this has complicated the fio filesetup.c file. Instead
have the io engine provide hooks for file open/close. This also
greatly cleans up the flags (we can get rid of SELFOPEN and MMAPIO)
and moves private knowledge into the engines where it belongs.

This potentially destabilizes fio somewhat, so testing is needed.
The new openfiles option that is introduced with this change isn't
verified working yet, hence it isn't documented.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
16 files changed:
engines/libaio.c
engines/mmap.c
engines/net.c
engines/null.c
engines/posixaio.c
engines/sg.c
engines/skeleton_external.c
engines/splice.c
engines/sync.c
engines/syslet-rw.c
filesetup.c
fio.c
fio.h
init.c
io_u.c
ioengines.c