diff options
author | Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> | 2017-08-04 18:14:24 +0300 |
---|---|---|
committer | Eric Blake <eblake@redhat.com> | 2017-08-30 13:00:38 -0500 |
commit | a0acf3a8f716946d7c425870bd05bc6dfe7667a2 (patch) | |
tree | 884e6d2866ba45c02e36c80e9b4afe65f88180d2 /nbd | |
parent | 02d2d860d25e439f0e88658c701668ab684568fb (diff) | |
download | qemu-a0acf3a8f716946d7c425870bd05bc6dfe7667a2.zip qemu-a0acf3a8f716946d7c425870bd05bc6dfe7667a2.tar.gz qemu-a0acf3a8f716946d7c425870bd05bc6dfe7667a2.tar.bz2 |
nbd/client: fix nbd_opt_go
Do not send NBD_OPT_ABORT to the broken server. After sending
NBD_REP_ACK on NBD_OPT_GO server is most probably in transmission
phase, when option sending is finished.
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Message-Id: <20170804151440.320927-2-vsementsov@virtuozzo.com>
Signed-off-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'nbd')
-rw-r--r-- | nbd/client.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/nbd/client.c b/nbd/client.c index 0a17de8..f1c16b5 100644 --- a/nbd/client.c +++ b/nbd/client.c @@ -399,12 +399,10 @@ static int nbd_opt_go(QIOChannel *ioc, const char *wantname, phase, but make sure it sent flags */ if (len) { error_setg(errp, "server sent invalid NBD_REP_ACK"); - nbd_send_opt_abort(ioc); return -1; } if (!info->flags) { error_setg(errp, "broken server omitted NBD_INFO_EXPORT"); - nbd_send_opt_abort(ioc); return -1; } trace_nbd_opt_go_success(); |