By adding error propagation to bdrv_img_create() we improve error reporting in qmp_transaction() and simplify qemu-img.c:img_create() a bit.
Please, check individual patches for details. o v2 - Fix small inconsistencies - Drop patches that moved the printing of the "Formatting" message to qemu-img Luiz Capitulino (5): block: bdrv_img_create(): add Error ** argument qemu-img: img_create(): pass Error object to bdrv_img_create() qemu-img: img_create(): drop unneeded goto and ret variable qmp: qmp_transaction(): pass Error object to bdrv_img_create() block: bdrv_img_create(): drop unused error handling code Paolo Bonzini (1): error: add error_set_errno and error_setg_errno block.c | 60 +++++++++++++++++++++++++----------------------------------- block.h | 6 +++--- blockdev.c | 13 +++++++------ error.c | 28 ++++++++++++++++++++++++++++ error.h | 9 +++++++++ qemu-img.c | 19 ++++++++++--------- 6 files changed, 82 insertions(+), 53 deletions(-) -- 1.7.12.315.g682ce8b