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

Jens Axboe <[email protected]>
Newsgroups gmane.linux.block,gmane.linux.kernel,gmane.linux.kernel.stable
Message-ID <178584843575.926496.3812961471455510787.b4-ty@b4>
On Tue, 04 Aug 2026 10:34:03 +0800, raoxu wrote:
> The size of a sequential zone backing file records the amount of data
> written and is used to restore the zone state. A backing file whose size
> is equal to the zone capacity is restored as a full zone, while a file
> larger than the zone capacity is rejected as invalid.
> 
> 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.
> 
> [...]

Applied, thanks!

[1/1] zloop: truncate finished zones to zone capacity
      commit: 72e67c118642634c25465db0c8bcfa54c4ce086c

Best regards,
-- 
Jens Axboe
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.