04.08.2017 19:11, Daniel P. Berrange wrote:
On Fri, Aug 04, 2017 at 06:14:28PM +0300, Vladimir Sementsov-Ogievskiy wrote:
Use int variable for nbd_co_send_request return value (as
nbd_co_send_request returns int).
Hmm, nbd_co_send_request() propagates return value of nbd_send_request,
which returns ssize_t.
See patch 04, nbd_send_request fixed in it to return int. It propagates
value of nbd_write which is int.
to also return ssize_t, rather than changing callers to use int.