]> git.ipfire.org Git - thirdparty/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>
Thu, 21 Jun 2018 01:45:02 +0000 (20:45 -0500)
commit955b77f56e3ce585569168c60fff2d5cb0f82e00
treea1ce72d26c09d4a525698034c06c83f6acb0626b
parentf3f01bab82608541a5f60fe04fce737832db5d56
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