summaryrefslogtreecommitdiff
path: root/qemu-img.c
diff options
context:
space:
mode:
authorKevin Wolf <kwolf@redhat.com>2010-03-26 17:37:20 +0100
committerKevin Wolf <kwolf@redhat.com>2010-04-23 16:08:46 +0200
commit4768fa902c3860f2fe34403e6e1c83bfca6da034 (patch)
treee58f179d9d058a2ecc892dc8dee57a3ceb378ecf /qemu-img.c
parent8252278afb4b646a5a21cf8c30bb0a0066825078 (diff)
downloadqemu-4768fa902c3860f2fe34403e6e1c83bfca6da034.zip
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>
Diffstat (limited to 'qemu-img.c')
0 files changed, 0 insertions, 0 deletions