From 1ecc95ca3117d146254dec621f1402f8be7f375c Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Thu, 20 Sep 2012 13:46:34 +0200 Subject: [PATCH] options: wire up e4defrag and falloc engines Signed-off-by: Jens Axboe --- options.c | 10 ++++++++++ os/os-linux.h | 5 +++++ 2 files changed, 15 insertions(+) diff --git a/options.c b/options.c index 8fa50a8f..d1cf7e8a 100644 --- a/options.c +++ b/options.c @@ -1082,6 +1082,16 @@ static struct fio_option options[FIO_MAX_OPTS] = { { .ival = "fusion-aw-sync", .help = "Fusion-io atomic write engine", }, +#endif +#ifdef FIO_HAVE_E4_ENG + { .ival = "e4defrag", + .help = "ext4 defrag engine", + }, +#endif +#ifdef FIO_HAVE_FALLOC_ENG + { .ival = "falloc", + .help = "fallocate() file based engine", + }, #endif { .ival = "external", .help = "Load external engine (append name)", diff --git a/os/os-linux.h b/os/os-linux.h index d5c3f76e..9b7ff29e 100644 --- a/os/os-linux.h +++ b/os/os-linux.h @@ -45,6 +45,7 @@ #define FIO_HAVE_CLOCK_MONOTONIC #define FIO_HAVE_GETTID #define FIO_USE_GENERIC_INIT_RANDOM_STATE +#define FIO_HAVE_E4_ENG /* * Can only enable this for newer glibcs, or the header and defines are @@ -57,6 +58,10 @@ #define FIO_HAVE_LINUX_FALLOCATE #endif +#ifdef FIO_HAVE_LINUX_FALLOCATE +#define FIO_HAVE_FALLOC_ENG +#endif + #ifdef SYNC_FILE_RANGE_WAIT_BEFORE #define FIO_HAVE_SYNC_FILE_RANGE #endif -- 2.25.1