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 13:47:43 +0000 (07:47 -0600)
commitbc390b175030f613e5f23edbde06ea5d466f6c31
treed89eebe4a73abac653534e8e8deb7e58092d158f
parentc9606d3d1ae17d7373da40694bcf6db2dbbff096
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