On 07/25/2014 12:07 PM, Max Reitz wrote: > Currently, we have a bitmap for keeping track of which clusters have > been created during the zero cluster expansion process. This was > necessary because we need to properly increase the refcount for shared > L2 tables. > > However, now we can simply take the L2 refcount and use it for the > cluster allocated for expansion. This will be the correct refcount and > therefore we don't have to remember that cluster having been allocated > any more. > > Signed-off-by: Max Reitz > --- > block/qcow2-cluster.c | 83 +++++++++++++-------------------------------------- > 1 file changed, 21 insertions(+), 62 deletions(-) Slick - less code, and faster operation :) -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org