From 138502a97c7957d9be7599d9fde94b5317e8c24b Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Thu, 1 Mar 2007 08:27:42 +0100 Subject: [PATCH] Only check FIO_DISKLESSIO in stat.c Just make the null engine set that flag as well. Signed-off-by: Jens Axboe --- engines/null.c | 2 +- stat.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; /* -- 2.25.1