qemu-e2k/include/qemu
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
..
acl.h
aes.h include/qemu/aes.h: Avoid conflicts with FreeBSD AES functions 2014-06-19 16:13:38 +01:00
atomic.h rcu: add rcu library 2015-02-02 16:55:10 +01:00
bitmap.h bitmap.h: Don't include qemu-common.h 2014-11-02 10:04:34 +03:00
bitops.h bitops.h: Don't include qemu-common.h 2014-11-02 10:04:34 +03:00
bswap.h cpu_ldst.h, cpu-all.h, bswap.h: Update documentation on ld/st accessors 2015-01-20 15:19:35 +00:00
compatfd.h
compiler.h qemu/compiler: Define QEMU_ARTIFICIAL 2014-09-29 14:55:28 -04:00
config-file.h
crc32c.h
envlist.h
error-report.h qemu-error: Add error_vreport() 2014-10-09 15:36:15 +02:00
event_notifier.h
fifo8.h
hbitmap.h
host-utils.h
int128.h
iov.h
log.h qemu-log: add log category for MMU info 2014-12-16 18:43:19 +00:00
main-loop.h async: aio_context_new(): Handle event_notifier_init failure 2014-09-22 11:39:48 +01:00
module.h
notify.h
option_int.h
option.h qemu-img: Suppress unhelpful extra errors in convert, amend 2015-02-26 14:51:21 +01:00
osdep.h memory: expose alignment used for allocating RAM as MemoryRegion API 2014-11-23 12:11:30 +02:00
queue.h rcu: introduce RCU-enabled QLIST 2015-02-16 17:30:19 +01:00
range.h Introduce signed range. 2014-06-19 18:44:19 +03:00
ratelimit.h
rcu_queue.h rcu: introduce RCU-enabled QLIST 2015-02-16 17:30:19 +01:00
rcu.h rcu: add g_free_rcu 2015-02-16 17:30:19 +01:00
readline.h
rfifolock.h
seqlock.h
sockets.h socket shutdown 2015-01-16 13:06:17 +05:30
thread-posix.h
thread-win32.h
thread.h rcu: add rcu library 2015-02-02 16:55:10 +01:00
throttle.h
timer.h cpu-exec: simplify init_delay_params 2015-02-02 16:55:11 +01:00
tls.h
typedefs.h Add device listener interface 2015-01-20 14:24:07 +00:00
uri.h
xattr.h