OSDN Git Service

nbd: Expose constants and structs for structured read
authorEric Blake <eblake@redhat.com>
Fri, 27 Oct 2017 10:40:28 +0000 (12:40 +0200)
committerEric Blake <eblake@redhat.com>
Mon, 30 Oct 2017 20:07:21 +0000 (21:07 +0100)
commitbae245d19a7fae77410cb8b09350b672df689a66
treebd4bfd313e22a91e10ffa16c1dce6e9bb385b0b0
parentdd6894404947d39a724ea265389fe0f2d6d5ecb7
nbd: Expose constants and structs for structured read

Upcoming patches will implement the NBD structured reply
extension [1] for both client and server roles.  Declare the
constants, structs, and lookup routines that will be valuable
whether the server or client code is backported in isolation.

This includes moving one constant from an internal header to
the public header, as part of the structured read processing
will be done in block/nbd-client.c rather than nbd/client.c.

[1]https://github.com/NetworkBlockDevice/nbd/blob/extension-structured-reply/doc/proto.md

Based on patches from Vladimir Sementsov-Ogievskiy.

Signed-off-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Message-Id: <20171027104037.8319-4-eblake@redhat.com>
include/block/nbd.h
nbd/common.c
nbd/nbd-internal.h
nbd/server.c