stats: Add hint information to per priority level stats
[fio.git] / engines / libzbc.c
index dae4fe16e9f861c11b8a7e7ead51c796c003a2cb..1bf1e8c8d838c4b7a954bf92d62ea21cf2b2b811 100644 (file)
@@ -68,18 +68,9 @@ 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;
        }
 
-       if (td->o.oatomic) {
-               td_verror(td, EINVAL, "libzbc does not support O_ATOMIC");
-               log_err("%s: libzbc does not support O_ATOMIC\n", f->file_name);
-               return -EINVAL;
-       }
-
        ld = calloc(1, sizeof(*ld));
        if (!ld)
                return -ENOMEM;
@@ -469,8 +460,7 @@ FIO_STATIC struct ioengine_ops ioengine = {
        .get_max_open_zones     = libzbc_get_max_open_zones,
        .finish_zone            = libzbc_finish_zone,
        .queue                  = libzbc_queue,
-       .flags                  = FIO_SYNCIO | FIO_NOEXTEND | FIO_RAWIO |
-                                 FIO_RO_NEEDS_RW_OPEN,
+       .flags                  = FIO_SYNCIO | FIO_NOEXTEND | FIO_RAWIO,
 };
 
 static void fio_init fio_libzbc_register(void)