]> git.proxmox.com Git - qemu.git/commit
qcow2: Fix creation of large images
authorKevin Wolf <kwolf@redhat.com>
Wed, 14 Jul 2010 08:33:49 +0000 (10:33 +0200)
committerKevin Wolf <kwolf@redhat.com>
Wed, 14 Jul 2010 08:33:49 +0000 (10:33 +0200)
commit82e9cbeb0d369a896e898fee6ab6527e416ee631
tree6d1ebce4333711e60996db64169c75041175ff34
parent2020dd5535affec319c03bf8ecd92818dee8d30b
qcow2: Fix creation of large images

qcow_create2 assumes that the new image will only need one cluster for its
refcount table initially. Obviously that's not true any more when the image is
big enough (exact value depends on the cluster size).

This patch calculates the refcount table size dynamically.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
(cherry picked from commit 4768fa902c3860f2fe34403e6e1c83bfca6da034)

Conflicts:

block/qcow2.c

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