diff options
| author | Stefan Hajnoczi <stefanha@redhat.com> | 2017-07-05 13:57:33 +0100 |
|---|---|---|
| committer | Max Reitz <mreitz@redhat.com> | 2017-07-11 17:45:00 +0200 |
| commit | 7c5bcc42120119bb46d8b2a422053467bcc7291c (patch) | |
| tree | a8c47b8a48d3830b1bf7a0eb5e691f0a94293625 /qemu-io-cmds.c | |
| parent | 95c67e3bd747b119aa0a902778e1c20fd7fded7f (diff) | |
| download | focaccia-qemu-7c5bcc42120119bb46d8b2a422053467bcc7291c.tar.gz focaccia-qemu-7c5bcc42120119bb46d8b2a422053467bcc7291c.zip | |
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 'qemu-io-cmds.c')
0 files changed, 0 insertions, 0 deletions