Re: [PATCH 2/2] block: fix the length of a smaller last zone in blkdev_get_zone_info()
From: Damien Le Moal
Date: Mon Oct 12 2026 - 08:54:45 EST
On 2026/10/12 14:41, shashank Jain wrote:
> On Mon, Oct 12, 2026, Damien Le Moal wrote:
>> How do you plan to issue a BLK_ZONE_REP_CACHED report? "blkzone report"
>> does not have that yet. I am planning to send a patch for it.
>
> Good point. Two options, and I am happy to follow your preference:
>
> - Use "blkzone report" with the cached flag once your util-linux patch
> lands - that matches the existing zbd tests and avoids a bundled tool.
> I would hold the blktests submission until it is available.
> - Or carry a small C helper in the blktests src/ directory that issues
> BLKREPORTZONEV2 with BLK_ZONE_REP_CACHED directly, so the test is
> self-contained and does not depend on the util-linux version.
>
> I lean towards the first, to match the zbd conventions and your blkzone
> work; tell me which you prefer and I will align the test with it.
Yes, let's avoid the small helper. Having access to the cached report with
blkzone will be useful for many things anyway, and the patch should be easy.
--
Damien Le Moal
Western Digital Research