]> git.proxmox.com Git - qemu.git/commit
sheepdog: show error message for halt status
authorLiu Yuan <tailai.ly@taobao.com>
Mon, 18 Mar 2013 06:27:55 +0000 (14:27 +0800)
committerKevin Wolf <kwolf@redhat.com>
Tue, 19 Mar 2013 10:48:36 +0000 (11:48 +0100)
commitfca23f0ad211e4debf80796a65165d0eea146424
treecdd394c9f78924c44a7d3bd76478cc9595608242
parent2d62a95766025e6a0a333528278936e2cc8bf978
sheepdog: show error message for halt status

Sheepdog (neither quorum nor unsafe mode) will refuse to serve IO requests when
number of alive nodes is less than that of copies specified by users. This will
return 0x19 to QEMU client which currently doesn't recognize it.

This patch adds an error description when QEMU client receives it, other than
plainly printing 'Invalid error code'

Cc: MORITA Kazutaka <morita.kazutaka@lab.ntt.co.jp>
Cc: Kevin Wolf <kwolf@redhat.com>
Cc: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Liu Yuan <tailai.ly@taobao.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: MORITA Kazutaka <morita.kazutaka@lab.ntt.co.jp>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/sheepdog.c