From dcfc77d35b65f89787da4e64f118310028a66a8a Mon Sep 17 00:00:00 2001 From: Dmitry Monakhov Date: Wed, 10 Mar 2021 19:33:35 +0300 Subject: [PATCH] engines/falloc: add blockdevice as a target fallocate supoport for blockdevices was added five years ago. It is time to stress-test it via fio. --- engines/falloc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engines/falloc.c b/engines/falloc.c index 6382569b..4b05ed68 100644 --- a/engines/falloc.c +++ b/engines/falloc.c @@ -25,8 +25,8 @@ static int open_file(struct thread_data *td, struct fio_file *f) dprint(FD_FILE, "fd open %s\n", f->file_name); - if (f->filetype != FIO_TYPE_FILE) { - log_err("fio: only files are supported fallocate \n"); + if (f->filetype != FIO_TYPE_FILE && f->filetype != FIO_TYPE_BLOCK) { + log_err("fio: only files and blockdev are supported fallocate \n"); return 1; } if (!strcmp(f->file_name, "-")) { -- 2.25.1