zbd: Report the zone capacity
authorBart Van Assche <bvanassche@acm.org>
Wed, 22 Feb 2023 21:54:18 +0000 (13:54 -0800)
committerBart Van Assche <bvanassche@acm.org>
Wed, 22 Feb 2023 21:56:32 +0000 (13:56 -0800)
The zone capacity is important information. Hence report the zone
capacity if ZBD debugging is enabled.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
zbd.c

diff --git a/zbd.c b/zbd.c
index ba2c0401a95519696e38b7af852bd4a281823a39..1d96bf178aac56de93b520aa894ca32a8cab3b5c 100644 (file)
--- a/zbd.c
+++ b/zbd.c
@@ -807,8 +807,8 @@ static int parse_zone_info(struct thread_data *td, struct fio_file *f)
                goto out;
        }
 
-       dprint(FD_ZBD, "Device %s has %d zones of size %"PRIu64" KB\n",
-              f->file_name, nr_zones, zone_size / 1024);
+       dprint(FD_ZBD, "Device %s has %d zones of size %"PRIu64" KB and capacity %"PRIu64" KB\n",
+              f->file_name, nr_zones, zone_size / 1024, zones[0].capacity / 1024);
 
        zbd_info = scalloc(1, sizeof(*zbd_info) +
                           (nr_zones + 1) * sizeof(zbd_info->zone_info[0]));