zbd: get max_active_zones limit value from zoned devices
[fio.git] / oslib / blkzoned.h
index 29fb034f585402b3798609b32a18c0519c9a03f5..e598bd4f8026f74ad6e61771858710589b409e2b 100644 (file)
@@ -18,6 +18,9 @@ extern int blkzoned_reset_wp(struct thread_data *td, struct fio_file *f,
                                uint64_t offset, uint64_t length);
 extern int blkzoned_get_max_open_zones(struct thread_data *td, struct fio_file *f,
                                       unsigned int *max_open_zones);
+extern int blkzoned_get_max_active_zones(struct thread_data *td,
+                                        struct fio_file *f,
+                                        unsigned int *max_active_zones);
 extern int blkzoned_finish_zone(struct thread_data *td, struct fio_file *f,
                                uint64_t offset, uint64_t length);
 #else
@@ -53,6 +56,12 @@ static inline int blkzoned_get_max_open_zones(struct thread_data *td, struct fio
 {
        return -EIO;
 }
+static inline int blkzoned_get_max_active_zones(struct thread_data *td,
+                                               struct fio_file *f,
+                                               unsigned int *max_open_zones)
+{
+       return -EIO;
+}
 static inline int blkzoned_finish_zone(struct thread_data *td,
                                       struct fio_file *f,
                                       uint64_t offset, uint64_t length)