Skip to content
Snippets Groups Projects
  • Eric Blake's avatar
    a5fced40
    qemu-nbd: Pass max connections to blockdev layer · a5fced40
    Eric Blake authored
    
    The next patch wants to adjust whether the NBD server code advertises
    MULTI_CONN based on whether it is known if the server limits to
    exactly one client.  For a server started by QMP, this information is
    obtained through nbd_server_start (which can support more than one
    export); but for qemu-nbd (which supports exactly one export), it is
    controlled only by the command-line option -e/--shared.  Since we
    already have a hook function used by qemu-nbd, it's easiest to just
    alter its signature to fit our needs.
    
    Signed-off-by: default avatarEric Blake <eblake@redhat.com>
    Message-Id: <20220512004924.417153-2-eblake@redhat.com>
    Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
    a5fced40
    History
    qemu-nbd: Pass max connections to blockdev layer
    Eric Blake authored
    
    The next patch wants to adjust whether the NBD server code advertises
    MULTI_CONN based on whether it is known if the server limits to
    exactly one client.  For a server started by QMP, this information is
    obtained through nbd_server_start (which can support more than one
    export); but for qemu-nbd (which supports exactly one export), it is
    controlled only by the command-line option -e/--shared.  Since we
    already have a hook function used by qemu-nbd, it's easiest to just
    alter its signature to fit our needs.
    
    Signed-off-by: default avatarEric Blake <eblake@redhat.com>
    Message-Id: <20220512004924.417153-2-eblake@redhat.com>
    Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>