nbd: Create struct for tracking export info
commit004a89fce9b5ec1b027bf4d104d83aa682db7b7a
authorEric Blake <eblake@redhat.com>
Fri, 7 Jul 2017 20:30:41 +0000 (7 15:30 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 14 Jul 2017 10:04:41 +0000 (14 12:04 +0200)
tree6b1858ce16afdb75b0c96bb118ae79a4cc4d2e40
parent1221a4746769f70231beab4db8da1c937e60340c
nbd: Create struct for tracking export info

The NBD Protocol is introducing some additional information
about exports, such as minimum request size and alignment, as
well as an advertised maximum request size.  It will be easier
to feed this information back to the block layer if we gather
all the information into a struct, rather than adding yet more
pointer parameters during negotiation.

Signed-off-by: Eric Blake <eblake@redhat.com>
Message-Id: <20170707203049.534-2-eblake@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
block/nbd-client.c
block/nbd-client.h
block/nbd.c
include/block/nbd.h
nbd/client.c
qemu-nbd.c