diff options
author | Eric Blake <eblake@redhat.com> | 2016-10-14 13:33:12 -0500 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2016-11-02 09:28:55 +0100 |
commit | 7d3123e1775f16bf23fa8d5bac17a3d8a9e72583 (patch) | |
tree | e2f3a91f15673460b020beec040e673efd0055cc /nbd/server.c | |
parent | 2cdbf41362cbc9b977dd458b6508352e45f2cb42 (diff) |
nbd: Let client skip portions of server reply
The server has a nice helper function nbd_negotiate_drop_sync()
which lets it easily ignore fluff from the client (such as the
payload to an unknown option request). We can't quite make it
common, since it depends on nbd_negotiate_read() which handles
coroutine magic, but we can copy the idea into the client where
we have places where we want to ignore data (such as the
description tacked on the end of NBD_REP_SERVER).
Signed-off-by: Eric Blake <eblake@redhat.com>
Message-Id: <1476469998-28592-11-git-send-email-eblake@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'nbd/server.c')
0 files changed, 0 insertions, 0 deletions