nbd: Move nbd_read() to common header
commit56dc682bf5e3a64b64a658c0aeec37570719c929
authorEric Blake <eblake@redhat.com>
Fri, 27 Oct 2017 10:40:36 +0000 (27 12:40 +0200)
committerEric Blake <eblake@redhat.com>
Mon, 30 Oct 2017 20:48:36 +0000 (30 21:48 +0100)
tree7b33c490a834eea42905e4875dfc3de0b3ac653c
parentd2febedb45729d1fe431ca7c1ed9519acfb454c4
nbd: Move nbd_read() to common header

An upcoming change to block/nbd-client.c will want to read the
tail of a structured reply chunk directly from the wire.  Move
this function to make it easier.

Based on a patch from Vladimir Sementsov-Ogievskiy.

Signed-off-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Message-Id: <20171027104037.8319-12-eblake@redhat.com>
include/block/nbd.h
nbd/nbd-internal.h