On 02/16/2015 07:44 AM, Markus Armbruster wrote: > 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 <arm...@redhat.com> > --- > qemu-img.c | 16 ++++++++++++---- > 1 file changed, 12 insertions(+), 4 deletions(-)
With pre-req patch in place, Reviewed-by: Eric Blake <ebl...@redhat.com> -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature