diff options
author | Eric Blake <eblake@redhat.com> | 2023-08-29 12:58:30 -0500 |
---|---|---|
committer | Eric Blake <eblake@redhat.com> | 2023-09-22 17:21:08 -0500 |
commit | d95ffb6fe6008c114602e20d848100081d62f7aa (patch) | |
tree | 6e051c4a1e55a3ba7dec997426a9a4ab450b4df2 /nbd/nbd-internal.h | |
parent | 297365b40ff24c7e07d6f40ec8f9ac83229ace94 (diff) | |
download | qemu-d95ffb6fe6008c114602e20d848100081d62f7aa.zip qemu-d95ffb6fe6008c114602e20d848100081d62f7aa.tar.gz qemu-d95ffb6fe6008c114602e20d848100081d62f7aa.tar.bz2 |
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>
Diffstat (limited to 'nbd/nbd-internal.h')
-rw-r--r-- | nbd/nbd-internal.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/nbd/nbd-internal.h b/nbd/nbd-internal.h index df42fef..133b1d9 100644 --- a/nbd/nbd-internal.h +++ b/nbd/nbd-internal.h @@ -1,7 +1,7 @@ /* * NBD Internal Declarations * - * Copyright (C) 2016 Red Hat, Inc. + * Copyright Red Hat * * This work is licensed under the terms of the GNU GPL, version 2 or later. * See the COPYING file in the top-level directory. @@ -44,7 +44,6 @@ #define NBD_OLDSTYLE_NEGOTIATE_SIZE (8 + 8 + 8 + 4 + 124) #define NBD_INIT_MAGIC 0x4e42444d41474943LL /* ASCII "NBDMAGIC" */ -#define NBD_REQUEST_MAGIC 0x25609513 #define NBD_OPTS_MAGIC 0x49484156454F5054LL /* ASCII "IHAVEOPT" */ #define NBD_CLIENT_MAGIC 0x0000420281861253LL #define NBD_REP_MAGIC 0x0003e889045565a9LL |