projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
engines/libzbc: for read workloads always open devices with O_RDONLY flag
[fio.git]
/
engines
/
libzbc.c
diff --git
a/engines/libzbc.c
b/engines/libzbc.c
index 2b63ef1acaa0b4624b80206893f3c6f6c74fb618..cb3e9ca5458e3488a113ad3b5adfaac20da5d457 100644
(file)
--- a/
engines/libzbc.c
+++ b/
engines/libzbc.c
@@
-68,9
+68,6
@@
static int libzbc_open_dev(struct thread_data *td, struct fio_file *f,
if (!read_only)
flags |= O_RDWR;
} else if (td_read(td)) {
- if (f->filetype == FIO_TYPE_CHAR && !read_only)
- flags |= O_RDWR;
- else
flags |= O_RDONLY;
}