Re: [Qemu-devel] [PATCH v10 10/17] qcow2: Assert that cluster operations are aligned

2017-05-03 Thread Max Reitz
On 27.04.2017 03:46, Eric Blake wrote: > We already audited (in commit 0c1bd469) that qcow2_discard_clusters() > is only passed cluster-aligned start values; but we can further > tighten the assertion that the only unaligned end value is at EOF. > > Recent commits have taken advantage of an unalig

[Qemu-devel] [PATCH v10 10/17] qcow2: Assert that cluster operations are aligned

2017-04-26 Thread Eric Blake
We already audited (in commit 0c1bd469) that qcow2_discard_clusters() is only passed cluster-aligned start values; but we can further tighten the assertion that the only unaligned end value is at EOF. Recent commits have taken advantage of an unaligned tail cluster, for both discard and write zero