]> Git Repo - qemu.git/commit
block: Improve some block-commit, block-stream error messages
authorMarkus Armbruster <[email protected]>
Fri, 13 Nov 2020 08:26:19 +0000 (09:26 +0100)
committerMarkus Armbruster <[email protected]>
Thu, 10 Dec 2020 16:16:44 +0000 (17:16 +0100)
commitb0d7be2a62eecade217fa45521be18149346eaa1
treeeea6331310809abddde129c74302f80d201b47ac
parentf820af87433af84c13cd260807b59bbce47e2f0a
block: Improve some block-commit, block-stream error messages

block-commit defaults @base-node to the deepest backing image.  When
there is none, it fails with "Base 'NULL' not found".  Improve to
"There is no backing image".

block-commit and block-stream reject a @base argument that doesn't
resolve with "Base 'BASE' not found".  Commit 6b33f3ae8b "qemu-img:
Improve commit invalid base message" improved this message in
qemu-img.  Improve it here, too: "Can't find '%s' in the backing
chain".

QERR_BASE_NOT_FOUND is now unused.  Drop.

Cc: Kevin Wolf <[email protected]>
Cc: Max Reitz <[email protected]>
Cc: [email protected]
Signed-off-by: Markus Armbruster <[email protected]>
Message-Id: <20201113082626.2725812[email protected]>
Reviewed-by: Max Reitz <[email protected]>
blockdev.c
include/qapi/qmp/qerror.h
tests/qemu-iotests/040
This page took 0.024889 seconds and 4 git commands to generate.