Markus Armbruster dc523cd348 qemu-img: Suppress unhelpful extra errors in convert, amend
img_convert() and img_amend() use qemu_opts_do_parse(), 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 -o backing_format=raw in.img out.img
    qemu-img: Invalid parameter 'backing_format'
    qemu-img: Invalid options for file format 'raw'

To fix, propagate errors through qemu_opts_do_parse().  This lifts the
error reporting into callers.  Drop it from img_convert() and
img_amend(), keep it in qemu_chr_parse_compat(), bdrv_img_create().

Since I'm touching qemu_opts_do_parse() anyway, write a function
comment for it.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
2015-02-26 14:51:21 +01:00
..
2015-02-02 16:55:10 +01:00
2014-11-02 10:04:34 +03:00
2014-11-02 10:04:34 +03:00
2014-10-09 15:36:15 +02:00
2014-12-16 18:43:19 +00:00
2015-02-16 17:30:19 +01:00
2015-02-16 17:30:19 +01:00
2015-02-16 17:30:19 +01:00
2015-01-16 13:06:17 +05:30
2015-02-02 16:55:10 +01:00
2015-02-02 16:55:11 +01:00
2015-01-20 14:24:07 +00:00