• P
    qemu: blockcopy: Explicitly assert 'reuse' for block devices · 060d4ec6
    Peter Krempa 提交于
    When copying to a block device, the block device will already exist. To
    allow users using a block device without any preparation, they need to
    use the block copy without VIR_DOMAIN_BLOCK_COPY_REUSE_EXT.
    
    This means that if the target is an existing block device we don't need
    to prepare it, but we can't reject it as being existing.
    
    To avoid breaking this feature, explicitly assume that existing block
    devices will be reused even without that flag explicitly specified,
    while skipping attempts to create it.
    
    qemuMonitorDriveMirror still needs to honor the flag as specified by the
    user, since qemu overwrites the metadata otherwise.
    060d4ec6
qemu_driver.c 663.4 KB