zbd: remove zbd_zoned_model ZBD_IGNORE
[fio.git] / engines / libzbc.c
index 3dde93db54713dbe884a2c6b9d2708ee1af4e01e..7f2bc431b4352f7f3472fd00b63c268b823dbe64 100644 (file)
@@ -180,10 +180,8 @@ static int libzbc_get_zoned_model(struct thread_data *td, struct fio_file *f,
        struct libzbc_data *ld;
        int ret;
 
-       if (f->filetype != FIO_TYPE_BLOCK && f->filetype != FIO_TYPE_CHAR) {
-               *model = ZBD_IGNORE;
-               return 0;
-       }
+       if (f->filetype != FIO_TYPE_BLOCK && f->filetype != FIO_TYPE_CHAR)
+               return -EINVAL;
 
        ret = libzbc_open_dev(td, f, &ld);
        if (ret)