From: Jens Axboe Date: Tue, 13 Mar 2007 07:15:18 +0000 (+0100) Subject: [PATCH] disk_util: Allow an engine to turn off disk_util specifically X-Git-Tag: fio-1.14~29 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=62d984e2c12579361ee620b0a309c540cff9b09d [PATCH] disk_util: Allow an engine to turn off disk_util specifically Originally from Joel Becker An engine may support disks, but be unable to work with disk_util (as there is no fd). Add a flag to turn off disk_util from the engine. Signed-off-by: Jens Axboe --- diff --git a/fio.h b/fio.h index e9f34e8a..0ca23cc0 100644 --- a/fio.h +++ b/fio.h @@ -215,6 +215,7 @@ enum fio_ioengine_flags { FIO_RAWIO = 1 << 1, /* some sort of direct/raw io */ FIO_DISKLESSIO = 1 << 2, /* no disk involved */ FIO_NOEXTEND = 1 << 3, /* engine can't extend file */ + FIO_NODISKUTIL = 1 << 4, /* diskutil can't handle filename */ }; /* diff --git a/stat.c b/stat.c index 1eb55be4..85d55b4c 100644 --- a/stat.c +++ b/stat.c @@ -249,7 +249,8 @@ void init_disk_util(struct thread_data *td) dev_t dev; char *p; - if (!td->do_disk_util || (td->io_ops->flags & FIO_DISKLESSIO)) + if (!td->do_disk_util || + (td->io_ops->flags & (FIO_DISKLESSIO | FIO_NODISKUTIL))) return; /*