]> git.proxmox.com Git - qemu.git/commit
qemu-nbd: Improve error reporting
authorRyota Ozaki <ozaki.ryota@gmail.com>
Sun, 2 May 2010 21:50:25 +0000 (06:50 +0900)
committerKevin Wolf <kwolf@redhat.com>
Mon, 17 May 2010 08:20:04 +0000 (10:20 +0200)
commitcb7cf0e3f471143136afb2ad1ff65890a978adc6
tree13c20a54736a4c1723c0a04e6b46ec09565b8aad
parent3abbc4d981159f2d53896808974ca7b07259ac58
qemu-nbd: Improve error reporting

- use err(3) instead of errx(3) if errno is available
  to report why failed
- let fail prior to daemon(3) if opening a nbd file
  is likely to fail after daemonizing to avoid silent
  failure exit
- add missing 'ret = 1' when unix_socket_outgoing failed

Signed-off-by: Ryota Ozaki <ozaki.ryota@gmail.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
qemu-nbd.c