Re: [PATCH v2] zloop: truncate finished zones to zone capacity
From: Christoph Hellwig
Date: Tue Aug 04 2026 - 08:37:28 EST
On Tue, Aug 04, 2026 at 10:34:03AM +0800, raoxu wrote:
> However, zloop_finish_zone() currently truncates the backing file to the
> zone size. For devices with a reduced zone capacity, finishing a zone
> therefore creates a backing file larger than the zone capacity. After the
> device is removed and later re-added, that zone file is rejected instead
> of being restored as a full zone.
Can you add a blktests test case for this?