sheepdog: fix return value of do_load_save_vm_state
authorMORITA Kazutaka <morita.kazutaka@lab.ntt.co.jp>
Tue, 29 May 2012 16:05:15 +0000 (01:05 +0900)
committerKevin Wolf <kwolf@redhat.com>
Wed, 30 May 2012 07:58:39 +0000 (09:58 +0200)
commit6f3c714eb7730630241fd0b33b799352d7feb876
tree4078143a575ac26cd7a2d302429408828b8df684
parent47ce9ef7f89032c4079bf5132a12d1bfd4d5bca5
sheepdog: fix return value of do_load_save_vm_state

bdrv_save_vmstate and bdrv_load_vmstate should return the vmstate size
on success, and -errno on error.

Signed-off-by: MORITA Kazutaka <morita.kazutaka@lab.ntt.co.jp>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/sheepdog.c