qcow2: Let inc_refcounts() resize the reftable
commit641bb63cd6b003ab0ca2e312a014449037d71647
authorMax Reitz <mreitz@redhat.com>
Wed, 22 Oct 2014 12:09:36 +0000 (22 14:09 +0200)
committerKevin Wolf <kwolf@redhat.com>
Thu, 23 Oct 2014 13:34:01 +0000 (23 15:34 +0200)
tree30ab9a169d64b5cc391f6b1eb783f7e95535afb4
parentfef4d3d5644f984e9fa427dea4f7cfa15de9059c
qcow2: Let inc_refcounts() resize the reftable

Now that the refcount table can be passed around by reference, do that
for inc_refcounts() (and subsequently check_refcounts_l1() and
check_refcounts_l2()) and use it for resizing it when a cluster after
the image end is encountered.

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