qemu/nbd
Vladimir Sementsov-Ogievskiy ab01df1fe2 nbd/client: refactor nbd_read_eof
Refactor nbd_read_eof to return 1 on success, 0 on eof, when no
data was read and <0 for other cases, because returned size of
read data is not actually used.

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Message-Id: <20170804151440.320927-3-vsementsov@virtuozzo.com>
[eblake: tweak function comments, rebase to test 083 enhancements]
Signed-off-by: Eric Blake <eblake@redhat.com>
2017-08-30 13:00:38 -05:00
..
client.c nbd/client: refactor nbd_read_eof 2017-08-30 13:00:38 -05:00
common.c nbd: Fix trace message for disconnect 2017-08-15 10:03:27 -05:00
Makefile.objs nbd: Split nbd.c 2016-01-15 18:58:02 +01:00
nbd-internal.h nbd/client: refactor nbd_read_eof 2017-08-30 13:00:38 -05:00
server.c nbd: Fix order of bdrv_set_perm and bdrv_invalidate_cache 2017-08-15 10:03:27 -05:00
trace-events trace-events: fix code style: print 0x before hex numbers 2017-08-01 12:13:07 +01:00