• P
    qemu: driver: Fix shallow non-reuse block copy · 805b4aa2
    Peter Krempa 提交于
    The code preparing data for creating/attaching the target image of block
    copy didn't use the correct reference to the existing backing chain in
    case when the copy should inherit it. This meant that qemu actually
    opened a second copy of the chain and operated on that.
    
    This would de-sync qemu from libvirt's view of node names. Luckily this
    is only hypothetical at this point since it happens only when -blockdev
    is enabled.
    
    Fix it by passing 'mirrorBacking' which has the proper data as the
    backing store when calling
    qemuBuildStorageSourceChainAttachPrepareBlockdevTop.
    Signed-off-by: NPeter Krempa <pkrempa@redhat.com>
    Reviewed-by: NJán Tomko <jtomko@redhat.com>
    805b4aa2
qemu_driver.c 746.2 KB