projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'unified-merge' of https://github.com/jeffreyalien/fio
[fio.git]
/
engines
/
falloc.c
diff --git
a/engines/falloc.c
b/engines/falloc.c
index bb3ac85045b2f16fd650abe2c2081371acd6f2c1..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);
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, "-")) {
return 1;
}
if (!strcmp(f->file_name, "-")) {
@@
-65,8
+65,10
@@
open_again:
#endif
#ifndef FALLOC_FL_PUNCH_HOLE
#define FALLOC_FL_PUNCH_HOLE 0x02 /* de-allocates range */
#endif
#ifndef FALLOC_FL_PUNCH_HOLE
#define FALLOC_FL_PUNCH_HOLE 0x02 /* de-allocates range */
-#endif
-static int fio_fallocate_queue(struct thread_data *td, struct io_u *io_u)
+#endif
+
+static enum fio_q_status fio_fallocate_queue(struct thread_data *td,
+ struct io_u *io_u)
{
struct fio_file *f = io_u->file;
int ret;
{
struct fio_file *f = io_u->file;
int ret;