summaryrefslogtreecommitdiffstats
path: root/scripts/checkpatch.pl
diff options
context:
space:
mode:
authorEric Blake2018-11-30 03:32:32 +0100
committerEric Blake2018-11-30 21:13:37 +0100
commitc688e6ca7b41a105241054853d250df64addbf8f (patch)
treedb3fd340a280425ce23fce29ba2cb13ea60f2ab9 /scripts/checkpatch.pl
parentnbd/client: Make x-dirty-bitmap more reliable (diff)
downloadqemu-c688e6ca7b41a105241054853d250df64addbf8f.tar.gz
qemu-c688e6ca7b41a105241054853d250df64addbf8f.tar.xz
qemu-c688e6ca7b41a105241054853d250df64addbf8f.zip
nbd/client: Send NBD_CMD_DISC if open fails after connect
If nbd_client_init() fails after we are already connected, then the server will spam logs with: Disconnect client, due to: Unexpected end-of-file before all bytes were read unless we gracefully disconnect before closing the connection. Ways to trigger this: $ opts=driver=nbd,export=foo,server.type=inet,server.host=localhost,server.port=10809 $ qemu-img map --output=json --image-opts $opts,read-only=off $ qemu-img map --output=json --image-opts $opts,x-dirty-bitmap=nosuch: Signed-off-by: Eric Blake <eblake@redhat.com> Message-Id: <20181130023232.3079982-4-eblake@redhat.com> Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Diffstat (limited to 'scripts/checkpatch.pl')
0 files changed, 0 insertions, 0 deletions