projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b0a711c
)
engines/falloc: add blockdevice as a target
author
Dmitry Monakhov
<dmtrmonakhov@yandex-team.ru>
Wed, 10 Mar 2021 16:33:35 +0000
(19:33 +0300)
committer
Dmitry Monakhov
<dmtrmonakhov@yandex-team.ru>
Wed, 10 Mar 2021 16:40:49 +0000
(19:40 +0300)
fallocate supoport for blockdevices was added five years ago.
It is time to stress-test it via fio.
engines/falloc.c
patch
|
blob
|
blame
|
history
diff --git
a/engines/falloc.c
b/engines/falloc.c
index 6382569b9a92c42c1ad5d76a75d9441808de6cc8..4b05ed68fb467263ddbebabe7e79dd5231f92b63 100644
(file)
--- 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 a
nd blockdev a
re supported fallocate \n");
return 1;
}
if (!strcmp(f->file_name, "-")) {