]> git.proxmox.com Git - mirror_qemu.git/commit
nbd/client: refactor nbd_read_eof
authorVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Fri, 4 Aug 2017 15:14:25 +0000 (18:14 +0300)
committerEric Blake <eblake@redhat.com>
Wed, 30 Aug 2017 18:00:38 +0000 (13:00 -0500)
commitab01df1fe21c013d1fd9e3f4c782430741c7dd33
treeb65500fefd4e3f01cee811b6beaf87da40930b71
parenta0acf3a8f716946d7c425870bd05bc6dfe7667a2
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>
nbd/client.c
nbd/nbd-internal.h
tests/qemu-iotests/083.out