commit | b1bebc321e3b831d424dd49626833dd642224bd4 | [log] [tgz] |
---|---|---|
author | Jens Axboe <axboe@fb.com> | Tue Mar 18 13:30:32 2014 -0600 |
committer | Jens Axboe <axboe@fb.com> | Tue Mar 18 13:30:32 2014 -0600 |
tree | e9726a2f870298d0693c9d82f6e58950adafa5fa | |
parent | 0aae4ce7dbc93fe5770b25c76f5b6242ce398b7a [diff] |
Prevent file_append=1 with IO engine that can't extend files Signed-off-by: Jens Axboe <axboe@fb.com>
diff --git a/init.c b/init.c index 73ec9eb..9b0666d 100644 --- a/init.c +++ b/init.c
@@ -676,6 +676,11 @@ 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; }