• E
    nbd: Let server know when client gives up negotiation · 2cdbf413
    Eric Blake 提交于
    The NBD spec says that a client should send NBD_OPT_ABORT
    rather than just dropping the connection, if the client doesn't
    like something the server sent during option negotiation.  This
    is a best-effort attempt only, and can only be done in places
    where we know the server is still in sync with what we've sent,
    whether or not we've read everything the server has sent.
    Technically, the server then has to reply with NBD_REP_ACK, but
    it's not worth complicating the client to wait around for that
    reply.
    Signed-off-by: NEric Blake <eblake@redhat.com>
    Message-Id: <1476469998-28592-10-git-send-email-eblake@redhat.com>
    Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
    2cdbf413
client.c 21.5 KB