Files
Damien Le Moal b7f275383a block: Expose queue nr_zones in sysfs
Expose through sysfs the nr_zones field of struct request_queue.
Exposing this value helps in debugging disk issues as well as
facilitating scripts based use of the disk (e.g. blktests).

For zoned block devices, the nr_zones field indicates the total number
of zones of the device calculated using the known disk capacity and
zone size. This number of zones is always 0 for regular block devices.

Since nr_zones is defined conditionally with CONFIG_BLK_DEV_ZONED,
introduce the blk_queue_nr_zones() function to return the correct value
for any device, regardless if CONFIG_BLK_DEV_ZONED is set.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2025-12-08 00:52:09 +00:00
..
2025-10-18 10:51:01 +00:00
2025-09-20 03:23:38 +01:00
2025-10-12 13:52:33 +01:00
2022-10-26 13:19:32 +02:00
2022-12-17 00:25:35 +02:00
2025-12-08 00:52:09 +00:00
2023-08-08 19:49:17 +02:00
2025-10-18 10:51:02 +00:00
2025-10-18 10:51:01 +00:00
2021-12-08 08:50:13 +01:00
2021-01-30 13:32:12 +01:00
2021-08-27 15:24:34 +02:00
2021-03-05 07:01:18 +01:00
2022-08-25 11:15:23 +02:00
2025-10-18 10:51:01 +00:00
2020-09-09 19:48:58 +02:00
2021-06-30 19:17:14 +02:00
2023-06-21 15:39:57 +02:00
2025-09-22 10:17:51 +02:00
2020-06-16 12:51:47 -07:00
2023-02-22 12:28:07 +00:00
2021-12-15 13:45:50 +08:00
2025-09-16 13:55:10 +02:00
2025-09-20 03:21:09 +01:00
2023-11-30 09:36:03 +00:00
2023-10-25 11:16:20 +02:00
2021-01-29 02:10:02 +08:00
2021-12-14 10:18:04 +01:00
2025-10-18 10:51:05 +00:00
2023-05-18 15:51:07 +00:00
2021-12-15 13:45:50 +08:00
2024-02-23 08:12:39 +01:00