Re: [PATCH v2] zloop: truncate finished zones to zone capacity

Christoph Hellwig <[email protected]> Tue, 4 Aug 2026 14:37:03 +0200
Newsgroups org.kernel.vger.linux-block,org.kernel.vger.linux-kernel,org.kernel.vger.stable
Message-ID <[email protected]>
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?