]> git.proxmox.com Git - mirror_qemu.git/commit - nbd/nbd-internal.h
nbd: Use new qio_channel_*_all() functions
authorEric Blake <eblake@redhat.com>
Tue, 5 Sep 2017 19:11:14 +0000 (14:11 -0500)
committerEric Blake <eblake@redhat.com>
Wed, 6 Sep 2017 15:11:54 +0000 (10:11 -0500)
commit030fa7f6f950f5c8963f1dee8e6bb7387ed86a99
treec604ccc0c3afbfa97fa60839fce99619bf20e457
parente8ffaa311080a570a7c86d03c139c160cd11a831
nbd: Use new qio_channel_*_all() functions

Rather than open-coding our own read/write-all functions, we
can make use of the recently-added qio code.  It slightly
changes the error message in one of the iotests.

Signed-off-by: Eric Blake <eblake@redhat.com>
Message-Id: <20170905191114.5959-4-eblake@redhat.com>
Reviewed-by: Daniel P. Berrange <berrange@redhat.com>
block/nbd-client.c
include/block/nbd.h
nbd/common.c
nbd/nbd-internal.h
tests/qemu-iotests/083.out