aboutsummaryrefslogtreecommitdiff
path: root/util/lockcnt.c
diff options
context:
space:
mode:
authorStefan Hajnoczi <stefanha@redhat.com>2017-07-05 13:57:33 +0100
committerMax Reitz <mreitz@redhat.com>2017-07-11 17:45:00 +0200
commit7c5bcc42120119bb46d8b2a422053467bcc7291c (patch)
treea8c47b8a48d3830b1bf7a0eb5e691f0a94293625 /util/lockcnt.c
parent95c67e3bd747b119aa0a902778e1c20fd7fded7f (diff)
downloadqemu-7c5bcc42120119bb46d8b2a422053467bcc7291c.zip
qemu-7c5bcc42120119bb46d8b2a422053467bcc7291c.tar.gz
qemu-7c5bcc42120119bb46d8b2a422053467bcc7291c.tar.bz2
qcow2: make refcount size calculation conservative
The refcount metadata size calculation is inaccurate and can produce numbers that are too small. This is bad because we should calculate a conservative number - one that is guaranteed to be large enough. This patch switches the approach to a fixed point calculation because the existing equation is hard to solve when inaccuracies are taken care of. Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Reviewed-by: Alberto Garcia <berto@igalia.com> Message-id: 20170705125738.8777-5-stefanha@redhat.com Signed-off-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'util/lockcnt.c')
0 files changed, 0 insertions, 0 deletions