• P
    block: add bdrv_open_backing_file · 9156df12
    Paolo Bonzini 提交于
    Mirroring runs without the backing file so that it can be copied outside
    QEMU.  However, we need to add it at the time the job is completed and
    QEMU switches to the target.  Factor out the common bits of opening an
    image and completing a mirroring operation.
    
    The new function does not assume that the file is closed immediately after
    it returns failure, so it keeps the BDRV_O_NO_BACKING flag up-to-date.
    Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
    Signed-off-by: NKevin Wolf <kwolf@redhat.com>
    9156df12
block.c 122.5 KB