]> git.proxmox.com Git - mirror_qemu.git/commit
nbd/client: Fix error messages during NBD_INFO_BLOCK_SIZE
authorEric Blake <eblake@redhat.com>
Tue, 1 May 2018 15:46:53 +0000 (10:46 -0500)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Wed, 11 Jul 2018 16:48:16 +0000 (11:48 -0500)
commitcb7a41f3f93e9d85fc739e3036612e1b622a4651
tree540e4310fd81e7c5948354c5f3f56217bba2f66a
parent8ca471da10838c58baf310bdda4c6f0ea0b329fe
nbd/client: Fix error messages during NBD_INFO_BLOCK_SIZE

A missing space makes for poor error messages, and sizes can't
go negative.  Also, we missed diagnosing a server that sends
a maximum block size less than the minimum.

Fixes: 081dd1fe
CC: qemu-stable@nongnu.org
Signed-off-by: Eric Blake <eblake@redhat.com>
Message-Id: <20180501154654.943782-1-eblake@redhat.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
(cherry picked from commit e475d108f1b3d3163f0affea67cdedbe5fc9752b)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
nbd/client.c