From 067c18eb3700373d029a9f2795d662453fc09cf4 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Wed, 22 Feb 2023 13:54:18 -0800 Subject: [PATCH] zbd: Report the zone capacity The zone capacity is important information. Hence report the zone capacity if ZBD debugging is enabled. Signed-off-by: Bart Van Assche --- zbd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zbd.c b/zbd.c index ba2c0401..1d96bf17 100644 --- 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])); -- 2.25.1