qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/2] Correct bitmap size in zero cluster expansion
@ 2013-09-25 10:07 Max Reitz
  2013-09-25 10:07 ` [Qemu-devel] [PATCH 1/2] qcow2: Correct bitmap size in zero expansion Max Reitz
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Max Reitz @ 2013-09-25 10:07 UTC (permalink / raw)
  To: qemu-devel; +Cc: Kevin Wolf, Stefan Hajnoczi, Max Reitz

The current version of the zero cluster expansion uses the guest disk
size for determining the size of the expanded_clusters bitmap, however,
it is addressed using host offsets. This leads to an assertion failing if
the host image size exceeds the guest disk size. This is fixed by using
the host image size instead for allocating the bitmap.

This however uncovers another problem: If the host image is growable, it
may grow during the zero cluster expansion due to cluster allocations. If
this happens, the bitmap has to be resized accordingly.

Max Reitz (2):
  qcow2: Correct bitmap size in zero expansion
  qemu-iotests: Preallocated zero clusters in 061

 block/qcow2-cluster.c      | 38 +++++++++++++++++++++++++++-----------
 tests/qemu-iotests/061     |  9 +++++++++
 tests/qemu-iotests/061.out | 11 +++++++++++
 3 files changed, 47 insertions(+), 11 deletions(-)

-- 
1.8.3.1

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-09-27  9:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-25 10:07 [Qemu-devel] [PATCH 0/2] Correct bitmap size in zero cluster expansion Max Reitz
2013-09-25 10:07 ` [Qemu-devel] [PATCH 1/2] qcow2: Correct bitmap size in zero expansion Max Reitz
2013-09-25 10:07 ` [Qemu-devel] [PATCH 2/2] qemu-iotests: Preallocated zero clusters in 061 Max Reitz
2013-09-27  9:23 ` [Qemu-devel] [PATCH 0/2] Correct bitmap size in zero cluster expansion Kevin Wolf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).