Recent changes (master)
The following changes since commit b02c5eda07966d2e1c41870f64b741413b67a9aa:
Merge branch 'taras/clientuid' of https://github.com/tarasglek/fio-1 (2021-02-10 13:22:04 -0700)
are available in the Git repository at:
git://git.kernel.dk/fio.git master
for you to fetch changes up to d16e84e256ffdcd3143c9439cf1e408d8db61c1a:
Merge branch 'per-engine-pre-write-function' of https://github.com/lukaszstolarczuk/fio (2021-02-14 13:21:05 -0700)
----------------------------------------------------------------
Jens Axboe (1):
Merge branch 'per-engine-pre-write-function' of https://github.com/lukaszstolarczuk/fio
��ukasz Stolarczuk (1):
filesetup: add engine's io_ops to prepopulate file with data
engines/libpmem.c | 1 + file.h | 1 + filesetup.c | 126 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ ioengines.h | 3 +- 4 files changed, 130 insertions(+), 1 deletion(-)
---
Diff of recent changes:
engines/libpmem.c +1 -0
@@ -255,6 +255,7 @@ FIO_STATIC struct ioengine_ops ioengine = { .open_file = fio_libpmem_open_file, .close_file = fio_libpmem_close_file, .get_file_size = generic_get_file_size, + .prepopulate_file = generic_prepopulate_file, .flags = FIO_SYNCIO | FIO_RAWIO | FIO_DISKLESSIO | FIO_NOEXTEND | FIO_NODISKUTIL | FIO_BARRIER | FIO_MEMALIGN, };
file.h +1 -0
@@ -207,6 +207,7 @@ extern "C" {extern int __must_check generic_open_file (struct thread_data *,struct fio_file *);extern int __must_check generic_close_file (struct thread_data *,struct fio_file *);extern int __must_check generic_get_file_size (struct thread_data *,struct fio_file *); +extern int __must_check generic_prepopulate_file (struct thread_data *,struct fio_file *); #ifdef __cplusplus }#endif
filesetup.c +126 -0
138 lines not on this page · raw message
ioengines.h +2 -1
@@ -8,7 +8,7 @@#include "io_u.h" #include "zbd_types.h" -#define FIO_IOOPS_VERSION 28 +#define FIO_IOOPS_VERSION 29#ifndef CONFIG_DYNAMIC_ENGINES #define FIO_STATIC static
@@ -47,6 +47,7 @@ struct ioengine_ops {int (*invalidate)(struct thread_data *,struct fio_file *);int (*unlink_file)(struct thread_data *,struct fio_file *);int (*get_file_size)(struct thread_data *,struct fio_file *); +int (*prepopulate_file)(struct thread_data *,struct fio_file *);void (*terminate)(struct thread_data *);int (*iomem_alloc)(struct thread_data *,size_t );void (*iomem_free)(struct thread_data *);