qemu-patch-raspberry4/nbd
Eric Blake 2cdbf41362 nbd: Let server know when client gives up negotiation
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: Eric Blake <eblake@redhat.com>
Message-Id: <1476469998-28592-10-git-send-email-eblake@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2016-11-02 09:28:55 +01:00
..
client.c nbd: Let server know when client gives up negotiation 2016-11-02 09:28:55 +01:00
common.c nbd: Drop unused offset parameter 2016-07-20 14:11:54 +01:00
Makefile.objs nbd: Split nbd.c 2016-01-15 18:58:02 +01:00
nbd-internal.h nbd: Share common option-sending code in client 2016-11-02 09:28:55 +01:00
server.c nbd: Send message along with server NBD_REP_ERR errors 2016-11-02 09:28:55 +01:00