• M
    qcow2: Correct bitmap size in zero expansion · e390cf5a
    Max Reitz 提交于
    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: NMax Reitz <mreitz@redhat.com>
    Signed-off-by: NKevin Wolf <kwolf@redhat.com>
    e390cf5a
qcow2-cluster.c 53.8 KB