engines/libzbc: for read workloads always open devices with O_RDONLY flag
[fio.git] / engines / libzbc.c
index 2b63ef1acaa0b4624b80206893f3c6f6c74fb618..cb3e9ca5458e3488a113ad3b5adfaac20da5d457 100644 (file)
@@ -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;
        }