Skip to content

Commit

Permalink
engines/falloc: add blockdevice as a target
Browse files Browse the repository at this point in the history
fallocate supoport for blockdevices was added five years ago.
It is time to stress-test it via fio.
  • Loading branch information
Dmitry Monakhov committed Mar 10, 2021
1 parent b0a711c commit dcfc77d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions engines/falloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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, "-")) {
Expand Down

0 comments on commit dcfc77d

Please sign in to comment.