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;
.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)