sheepdog: check return values of qemu_co_recv/send correctly
authorMORITA Kazutaka <morita.kazutaka@lab.ntt.co.jp>
Thu, 24 Oct 2013 07:01:11 +0000 (16:01 +0900)
committerKevin Wolf <kwolf@redhat.com>
Wed, 30 Oct 2013 11:21:44 +0000 (12:21 +0100)
commit80731d9da560461bbdcda5ad4b05f4a8a846fccd
tree098d3bf7b1d46de7b90a63af2941d878d7b838ce
parent321fd7d2b88defe11528e4d5a9f686c89ebee1ee
sheepdog: check return values of qemu_co_recv/send correctly

If qemu_co_recv/send doesn't return the specified length, it means
that an error happened.

Signed-off-by: MORITA Kazutaka <morita.kazutaka@lab.ntt.co.jp>
Tested-by: Liu Yuan <namei.unix@gmail.com>
Reviewed-by: Liu Yuan <namei.unix@gmail.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/sheepdog.c