diff options
author | Eric Blake <eblake@redhat.com> | 2019-03-23 16:26:38 -0500 |
---|---|---|
committer | Eric Blake <eblake@redhat.com> | 2019-03-30 10:06:07 -0500 |
commit | 2058c2ad261de7f58fae01d63d3d0efa484caf2a (patch) | |
tree | acea81aa7eb016903737c190714bf95db3acb233 /qemu-img-cmds.hx | |
parent | 230ce19814ecc6bff8edac3b5b86e7c82f422c6c (diff) | |
download | qemu-2058c2ad261de7f58fae01d63d3d0efa484caf2a.zip qemu-2058c2ad261de7f58fae01d63d3d0efa484caf2a.tar.gz qemu-2058c2ad261de7f58fae01d63d3d0efa484caf2a.tar.bz2 |
qemu-img: Report bdrv_block_status failures
If bdrv_block_status_above() fails, we are aborting the convert
process but failing to print an error message. Broken in commit
690c7301 (v2.4) when rewriting convert's logic.
Discovered when teaching nbdkit to support NBD_CMD_BLOCK_STATUS, and
accidentally violating the protocol by returning more than one extent
in spite of qemu asking for NBD_CMD_FLAG_REQ_ONE. The qemu NBD code
should probably handle the server's non-compliance more gracefully
than failing with EINVAL, but qemu-img shouldn't be silently
squelching any block status failures. It doesn't help that qemu 3.1
masks the qemu-img bug with extra noise that the nbd code is dumping
to stderr (that noise was cleaned up in d8b4bad8).
Reported-by: Richard W.M. Jones <rjones@redhat.com>
Signed-off-by: Eric Blake <eblake@redhat.com>
Message-Id: <20190323212639.579-2-eblake@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Diffstat (limited to 'qemu-img-cmds.hx')
0 files changed, 0 insertions, 0 deletions