protocol: Wire up backend support for NBD_INFO_INIT_STATE
commit528ba772f13eb6cebf8cc6bfa049415ff19196b4
authorEric Blake <eblake@redhat.com>
Mon, 3 Feb 2020 22:36:37 +0000 (3 16:36 -0600)
committerEric Blake <eblake@redhat.com>
Mon, 10 Feb 2020 19:57:29 +0000 (10 13:57 -0600)
tree15302b4613775adf045a785d2dc31af0f633eea0
parent17128128a11526c35f38e09a9c1672d2d94242fb
protocol: Wire up backend support for NBD_INFO_INIT_STATE

The NBD protocol is adding an extension to let servers advertise
initialization state to the client: whether the image contains holes,
and whether it is known to read as all zeroes.  This patch wires up
the backend to send the data, although it won't be until the next
couple of patches allow filters and plugins to report through new
callbacks that a client finally gets to see new bits set.

Signed-off-by: Eric Blake <eblake@redhat.com>
server/backend.c
server/filters.c
server/internal.h
server/plugins.c
server/protocol-handshake-newstyle.c