[PATCH] ioengine flags: Replace FIO_NETIO with real flags that map the
authorJoel Becker <joel.becker@oracle.com>
Thu, 1 Mar 2007 07:26:38 +0000 (08:26 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Thu, 1 Mar 2007 07:26:38 +0000 (08:26 +0100)
commita9defc9abb4a3013335d3aeeb132fd90900cac85
treef26b7f1cca47a2e9c44b95ff6c14a1ae54895547
parent9728ce37ea4348d4bdb2eefbaafee75ad651758c
[PATCH] ioengine flags: Replace FIO_NETIO with real flags that map the
behavior

The FIO_NETIO ioengine flag created two behaviors.  First, open_files()
would not open any files - this was handled in engines/net:setup().
Second, init_disk_util() would ignore the files and not try to locate
their disk.

Other engines might want one of these behaviors but not the other.  If
an engine opens its own files, it doesn't want open_files() to do anything,
even if the files are eventually disk-based.  An engine might want to
prevent init_disk_util() from running.

The FIO_NETIO flag is split into two flags.

FIO_SELFOPEN states that the engine will do its own open(), whether it
is a real open(2) or something internal to the engine.

FIO_DISKLESSIO states that init_disk_util() is should not be run.  fio
should treat the engine's files as if they are not part of a disk.

Finally, engines/net.c is changed to use these two flags.

Signed-off-by: Joel Becker <joel.becker@oracle.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
engines/net.c
filesetup.c
fio.h
stat.c