]> git.proxmox.com Git - qemu.git/commit
nbd: consistently return negative errno values
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 5 Mar 2012 07:56:10 +0000 (08:56 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 19 Apr 2012 14:36:43 +0000 (16:36 +0200)
commit185b43386ad999c80bdc58e41b87f05e5b3e8463
tree326967bbfb0f72801848e9aebbad859f33873828
parentfc19f8a02e45c4d8ad24dd7eb374330b03dfc28e
nbd: consistently return negative errno values

In the next patch we need to look at the return code of nbd_wr_sync.
To avoid percolating the socket_error() ugliness all around, let's
handle errors by returning negative errno values.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
block/nbd.c
nbd.c
nbd.h
qemu-nbd.c