]> git.proxmox.com Git - mirror_qemu.git/commit - block/qcow2.h
qcow2: Calculate refcount block entry count
authorMax Reitz <mreitz@redhat.com>
Wed, 22 Oct 2014 12:09:28 +0000 (14:09 +0200)
committerKevin Wolf <kwolf@redhat.com>
Thu, 23 Oct 2014 13:34:01 +0000 (15:34 +0200)
commit1d13d654666a7fd6d6a85a0ce9285dbf0d0444c2
treeafc4fe0f17cb9f8c441ebebdc9597cdb7c6dc1bb
parent9ebd84480583bb6d9a7666c079d99ff3266c423d
qcow2: Calculate refcount block entry count

The size of a refblock entry is (in theory) variable; calculate
therefore the number of entries per refblock and the according bit shift
(1 << x == entry count) when opening an image.

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