block migration: Activate image on destination before writing to it
commit9bd9c7f5b51447b073524a7ff280c3f8eefbd38a
authorKevin Wolf <kwolf@redhat.com>
Mon, 22 Feb 2016 09:21:15 +0000 (22 10:21 +0100)
committerKevin Wolf <kwolf@redhat.com>
Mon, 22 Feb 2016 09:21:15 +0000 (22 10:21 +0100)
tree4f9c8d5853fe214cd0866436fc0d9c1c3e4ea11b
parenta513416ecf86956757c82f030506f516fc015313
block migration: Activate image on destination before writing to it

When using 'migrate -b', we must make sure to take ownership of the
image before writing to it. Otherwise metadata would be thrown away on
migration completion; this was caught by the assertions introduced in
commit 09e0c771.

Reported-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
migration/block.c