]> git.proxmox.com Git - qemu.git/commit
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)
commitb02bea3a85cc939f09aa674a3f1e4f36d418c007
tree419ca89ad1df9d40015bb4e3c1a20596ca6f226f
parent253cb7b9909806b83d73269afb9cf0ab3fa2ce2c
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