]> git.proxmox.com Git - mirror_qemu.git/commit
qemu-img: Suppress unhelpful extra errors in convert, resize
authorMarkus Armbruster <armbru@redhat.com>
Thu, 12 Feb 2015 16:43:08 +0000 (17:43 +0100)
committerMarkus Armbruster <armbru@redhat.com>
Thu, 26 Feb 2015 13:48:16 +0000 (14:48 +0100)
commit6750e795b167e3defab36502e61b8c57ede119eb
tree4cae222f9fdd6af82a59d4fcf77b833392898d3f
parent79087c782e1549a6f9c8303aafc0b74f4e637756
qemu-img: Suppress unhelpful extra errors in convert, resize

add_old_style_options() for img_convert() and img_resize() use
qemu_opt_set(), which reports errors with qerror_report_err().  Its
error messages aren't helpful here, the caller reports one that
actually makes sense.  Reproducer:

    $ qemu-img convert -B raw in.img out.img
    qemu-img: Invalid parameter 'backing_file'
    qemu-img: Backing file not supported for file format 'raw'

Switch to qemu_opt_set_err() to get rid of the unwanted messages.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
qemu-img.c