qcow2: Clean up after refcount rebuild
authorMax Reitz <mreitz@redhat.com>
Wed, 22 Oct 2014 12:09:41 +0000 (14:09 +0200)
committerKevin Wolf <kwolf@redhat.com>
Thu, 23 Oct 2014 13:34:01 +0000 (15:34 +0200)
commit791230d8bbd5c09d80845755a54074cd2d8b5a22
treeabbcc7c1d55baf6a91bce059a235333662c5df5a
parentc7c0681bc8a781e0319b7cf969b904dfe50d083e
qcow2: Clean up after refcount rebuild

Because the old refcount structure will be leaked after having rebuilt
it, we need to recalculate the refcounts and run a leak-fixing operation
afterwards (if leaks should be fixed at all).

Signed-off-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/qcow2-refcount.c