diff options
author | Max Reitz <mreitz@redhat.com> | 2013-09-25 12:07:22 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2013-09-27 11:16:35 +0200 |
commit | e390cf5a9722d3f3cc54efb505f6ff37fa554b11 (patch) | |
tree | 27e3c5dfadbfe70735c3a556ab8bda85386a9b3b /block/mirror.c | |
parent | fef9c19139f4d69a080d99b8cbade163d0bbf0fc (diff) |
qcow2: Correct bitmap size in zero expansion
Since the expanded_clusters bitmap is addressed using host offsets in
the underlying image file, the correct size to use for allocating the
bitmap is not determined by the guest disk image but by the underlying
host image file.
Furthermore, this size may change during the expansion due to cluster
allocations on growable image files. In this case, the bitmap needs to
be resized as well to reflect the growth.
Signed-off-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block/mirror.c')
0 files changed, 0 insertions, 0 deletions