block migration: propagate return value when bdrv_write() returns < 0
authorYoshiaki Tamura <tamura.yoshiaki@lab.ntt.co.jp>
Tue, 20 Jul 2010 09:19:00 +0000 (18:19 +0900)
committerKevin Wolf <kwolf@redhat.com>
Mon, 26 Jul 2010 11:39:39 +0000 (13:39 +0200)
commit65d66c21bb476bc062834ce4ca786304bb430ce8
tree419ca89ad1df9d40015bb4e3c1a20596ca6f226f
parent3b3e2347b2e21e73d82d54f5a0450a115e2abb60
block migration: propagate return value when bdrv_write() returns < 0

Currently block_load() doesn't check return value of bdrv_write(), and
even the destination weren't prepared to execute block migration, it
proceeds and guest boots on the target.  This patch fix this issue.

Signed-off-by: Yoshiaki Tamura <tamura.yoshiaki@lab.ntt.co.jp>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block-migration.c