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 unaligned tail cluster, > for both discard and write zeroes. > > Signed-off-by: Eric Blake <ebl...@redhat.com> > > --- > v10: rebase to context > v9: rebase to master, by asserting that only tail cluster is unaligned > v7, v8: only earlier half of series submitted for 2.9 > v6: avoid assertion on non-cluster-aligned image, use s->cluster_sectors > to avoid a shift, drop R-b > v5: no change > v4: new patch > --- > block/qcow2-cluster.c | 15 +++++++++++---- > 1 file changed, 11 insertions(+), 4 deletions(-)
Reviewed-by: Max Reitz <mre...@redhat.com>
signature.asc
Description: OpenPGP digital signature