On 17.03.20 19:16, Alberto Garcia wrote: > The logic of this function remains pretty much the same, except that > it uses count_contiguous_subclusters(), which combines the logic of > count_contiguous_clusters() / count_contiguous_clusters_unallocated() > and checks individual subclusters. > > Signed-off-by: Alberto Garcia > --- > block/qcow2.h | 38 +++++------ > block/qcow2-cluster.c | 143 +++++++++++++++++++++--------------------- > 2 files changed, 85 insertions(+), 96 deletions(-) Reviewed-by: Max Reitz (Oops, totally missed the L1 entry out of bounds / L1 entry empty part in v3.)