Skip to content
Snippets Groups Projects
  • Eric Blake's avatar
    d95ffb6f
    nbd: Add types for extended headers · d95ffb6f
    Eric Blake authored
    
    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: default avatarEric Blake <eblake@redhat.com>
    Reviewed-by: default avatarVladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
    Message-ID: <20230829175826.377251-22-eblake@redhat.com>
    d95ffb6f
    History
    nbd: Add types for extended headers
    Eric Blake authored
    
    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: default avatarEric Blake <eblake@redhat.com>
    Reviewed-by: default avatarVladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
    Message-ID: <20230829175826.377251-22-eblake@redhat.com>