Merge branch 'fio_client_server_doc_fix' of https://github.com/pcpartpicker/fio
[fio.git] / zbd.c
diff --git a/zbd.c b/zbd.c
index b05d2360d927062842c2a380ce19ed760e2f385d..caac68bb3731eed7ef5a9c4f68e560b39bdc35ad 100644 (file)
--- a/zbd.c
+++ b/zbd.c
@@ -2243,3 +2243,15 @@ int zbd_do_io_u_trim(struct thread_data *td, struct io_u *io_u)
 
        return io_u_completed;
 }
+
+void zbd_log_err(const struct thread_data *td, const struct io_u *io_u)
+{
+       const struct fio_file *f = io_u->file;
+
+       if (td->o.zone_mode != ZONE_MODE_ZBD)
+               return;
+
+       if (io_u->error == EOVERFLOW)
+               log_err("%s: Exceeded max_active_zones limit. Check conditions of zones out of I/O ranges.\n",
+                       f->file_name);
+}