From: Jens Axboe Date: Thu, 1 Mar 2007 07:27:42 +0000 (+0100) Subject: Only check FIO_DISKLESSIO in stat.c X-Git-Tag: fio-1.13~19 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=138502a97c7957d9be7599d9fde94b5317e8c24b Only check FIO_DISKLESSIO in stat.c Just make the null engine set that flag as well. Signed-off-by: Jens Axboe --- diff --git a/engines/null.c b/engines/null.c index 6bd51bab..6db1ad6d 100644 --- a/engines/null.c +++ b/engines/null.c @@ -22,7 +22,7 @@ static struct ioengine_ops ioengine = { .name = "null", .version = FIO_IOOPS_VERSION, .queue = fio_null_queue, - .flags = FIO_SYNCIO | FIO_NULLIO, + .flags = FIO_SYNCIO | FIO_NULLIO | FIO_DISKLESSIO, }; static void fio_init fio_null_register(void) diff --git a/stat.c b/stat.c index ec418da9..0ecc1648 100644 --- a/stat.c +++ b/stat.c @@ -246,7 +246,7 @@ void init_disk_util(struct thread_data *td) dev_t dev; char *p; - if (!td->do_disk_util || (td->io_ops->flags & (FIO_DISKLESSIO | FIO_NULLIO))) + if (!td->do_disk_util || (td->io_ops->flags & FIO_DISKLESSIO)) return; /*