nbd: Share common option-sending code in client
commitc8a3a1b6c4034cf53cdbd953331c72f9573edb77
authorEric Blake <eblake@redhat.com>
Fri, 14 Oct 2016 18:33:10 +0000 (14 13:33 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 2 Nov 2016 08:28:55 +0000 (2 09:28 +0100)
tree152c60a934b497fd819fdee9025b930727e92c44
parent3668328303429f3bc93ab3365c66331600b06a2d
nbd: Share common option-sending code in client

Rather than open-coding each option request, it's easier to
have common helper functions do the work.  That in turn requires
having convenient packed types for handling option requests
and replies.

Signed-off-by: Eric Blake <eblake@redhat.com>
Message-Id: <1476469998-28592-9-git-send-email-eblake@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
include/block/nbd.h
nbd/client.c
nbd/nbd-internal.h