]> git.proxmox.com Git - qemu.git/commit
qemu-nbd: print error messages from the daemon through a pipe
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 4 Nov 2011 14:51:22 +0000 (15:51 +0100)
committerKevin Wolf <kwolf@redhat.com>
Fri, 11 Nov 2011 13:02:58 +0000 (14:02 +0100)
commitc1f8fdc3620781c87a0bc519edb691af975c6356
tree29d5f07d5ab8c3c0a5b383a3611777b19fe33f17
parenta517e88baa9bef2b5c54a11d62b2b2ab2a5c4ab7
qemu-nbd: print error messages from the daemon through a pipe

In order to get nice error messages, keep the qemu-nbd process running
until before issuing NBD_DO_IT and connected to the daemon with a pipe.
This lets the qemu-nbd process relay error messages from the daemon and
exit with a nonzero status if appropriate.

Suggested-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
qemu-nbd.c