qemu: blockcopy: Don't remove existing disk mirror info
authorPeter Krempa <pkrempa@redhat.com>
Wed, 25 Jun 2014 16:11:17 +0000 (18:11 +0200)
committerEric Blake <eblake@redhat.com>
Fri, 27 Jun 2014 01:37:05 +0000 (19:37 -0600)
commit2d03487b702b3946f9ef389614b17bf3c44108a4
tree60f77c213b00698c57fc5283e423a4776507697f
parent2c84a8f6de262b89d15ec5d6da20e8f0c75b2ea4
qemu: blockcopy: Don't remove existing disk mirror info

When creating a new disk mirror the new struct is stored in a separate
variable until everything went well. The removed hunk would actually
remove existing mirror information for example when the api would be run
if a mirror still exists.

(cherry picked from commit 02b364e186d487f54ed410c01af042f23e812d42)

This fixes a regression introduced in commit ff5f30b.

Signed-off-by: Eric Blake <eblake@redhat.com>

Conflicts:
src/qemu/qemu_driver.c - no refactoring of commits 7b7bf001, 4f20226, a88fb30, 632f78c, b090aa7
src/qemu/qemu_driver.c