plugins: Wire up ocaml plugin support for NBD_INFO_INIT_STATE
commita7d5cbdd58823e90a3d2c6e34c353141f3198d13
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 20:40:15 +0000 (10 14:40 -0600)
treee0faf5fa467766a24f195657216e2090a8257cd0
parent707054548342b2592692d3d15bacc6d4a7ce60eb
plugins: Wire up ocaml plugin 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.  For Ocaml, the changes
are just copy-and-paste, but I wasn't sure how to test them beyond a
successful build.

Signed-off-by: Eric Blake <eblake@redhat.com>
plugins/ocaml/NBDKit.ml
plugins/ocaml/NBDKit.mli
plugins/ocaml/ocaml.c