From b1bebc321e3b831d424dd49626833dd642224bd4 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Tue, 18 Mar 2014 13:30:32 -0600 Subject: [PATCH] Prevent file_append=1 with IO engine that can't extend files Signed-off-by: Jens Axboe --- init.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/init.c b/init.c index 73ec9eb2..9b0666d7 100644 --- a/init.c +++ b/init.c @@ -676,6 +676,11 @@ static int fixup_options(struct thread_data *td) if (td->o.rand_seed) td->o.rand_repeatable = 0; + if ((td->io_ops->flags & FIO_NOEXTEND) && td->o.file_append) { + log_err("fio: can't append/extent with IO engine %s\n", td->io_ops->name); + ret = 1; + } + return ret; } -- 2.25.1