On Fri, Mar 25, 2022 at 11:19:08AM +0100, Pankaj Raghav wrote: > This test will break when zone capacity != zone size because the > calculation of the size to be filled is done using zone_size instead of > the actual capacity available per zone. Fix it by using zone capacity. > > As a zoned device can have variable capacity, use the btrfs utility to > get the zone capacity from the first data block group that the test will > be performed on. > > The support to extract zone capacity was added to blkzone only from > version 2.37. So zcap will be used only when the blkzone version is > greater or equal to 2.37. Looks good to me. Reviewed-by: Naohiro Aota <naohiro.aota@xxxxxxx>