qcow2: More helpers for refcount modification
authorMax Reitz <mreitz@redhat.com>
Tue, 10 Feb 2015 20:28:51 +0000 (15:28 -0500)
committerKevin Wolf <kwolf@redhat.com>
Tue, 10 Mar 2015 13:02:21 +0000 (14:02 +0100)
commit59c0cb7830be68080c6a0d1449253b954350e57d
tree101df899f44f430e7d82e3eaae63241fc9534f36
parent7453c96b78c2b09aa72924f933bb9616e5474194
qcow2: More helpers for refcount modification

Add helper functions for getting and setting refcounts in a refcount
array for any possible refcount order, and choose the correct one during
refcount initialization.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/qcow2-refcount.c