qemu-e2k/nbd
Eric Blake d95ffb6fe6 nbd: Add types for extended headers
Add the constants and structs necessary for later patches to start
implementing the NBD_OPT_EXTENDED_HEADERS extension in both the client
and server, matching recent upstream nbd.git (through commit
e6f3b94a934).  This patch does not change any existing behavior, but
merely sets the stage for upcoming patches.

This patch does not change the status quo that neither the client nor
server use a packed-struct representation for the request header.
While most of the patch adds new types, there is also some churn for
renaming the existing NBDExtent to NBDExtent32 to contrast it with
NBDExtent64, which I thought was a nicer name than NBDExtentExt.

Signed-off-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
Message-ID: <20230829175826.377251-22-eblake@redhat.com>
2023-09-22 17:21:08 -05:00
..
client-connection.c nbd: Replace bool structured_reply with mode enum 2023-09-22 17:19:27 -05:00
client.c nbd/client: Pass mode through to nbd_send_request 2023-09-22 17:20:41 -05:00
common.c nbd: Add types for extended headers 2023-09-22 17:21:08 -05:00
meson.build nbd: move connection code from block/nbd to nbd/client-connection 2021-06-18 10:59:53 -05:00
nbd-internal.h nbd: Add types for extended headers 2023-09-22 17:21:08 -05:00
server.c nbd: Add types for extended headers 2023-09-22 17:21:08 -05:00
trace-events nbd: s/handle/cookie/ to match NBD spec 2023-07-19 15:25:30 -05:00
trace.h trace: switch position of headers to what Meson requires 2020-08-21 06:18:24 -04:00