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>
Thu, 26 Jun 2014 21:40:51 +0000 (15:40 -0600)
commitb952dbdaa56b62f92eda11087fbcac509b6c8789
tree4d90cda8c7f0316fb5193491e35cff93342a4a76
parentc957b6697e6be093c5e999ef07d80b131c98ca39
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 commit 7b7bf001
src/qemu/qemu_driver.c