Re: [Qemu-devel] [PATCH 13/19] nbd/server: return original error codes

2017-06-02 Thread Vladimir Sementsov-Ogievskiy
02.06.2017 01:29, Eric Blake wrote: On 05/30/2017 09:30 AM, Vladimir Sementsov-Ogievskiy wrote: The code in many cases return -EINVAL or -EIO instead of original error code from, for example, write_sync(). Following patch will need EPIPE handling, so, let's refactor this where possible (the

Re: [Qemu-devel] [PATCH 13/19] nbd/server: return original error codes

2017-06-01 Thread Eric Blake
On 05/30/2017 09:30 AM, Vladimir Sementsov-Ogievskiy wrote: > The code in many cases return -EINVAL or -EIO instead of original error > code from, for example, write_sync(). Following patch will need EPIPE > handling, so, let's refactor this where possible (the only exclusion > is

[Qemu-devel] [PATCH 13/19] nbd/server: return original error codes

2017-05-30 Thread Vladimir Sementsov-Ogievskiy
The code in many cases return -EINVAL or -EIO instead of original error code from, for example, write_sync(). Following patch will need EPIPE handling, so, let's refactor this where possible (the only exclusion is nbd_co_receive_request, with own return-code convention) Signed-off-by: Vladimir