Re: [Qemu-devel] [PATCH v2 for-2.10 2/4] block: Add errp to b{lk, drv}_truncate()

2017-03-28 Thread Max Reitz
On 23.03.2017 18:46, Kevin Wolf wrote: > Am 08.03.2017 um 20:14 hat Max Reitz geschrieben: >> For one thing, this allows us to drop the error message generation from >> qemu-img.c and blockdev.c and instead have it unified in >> bdrv_truncate(). >> >> Signed-off-by: Max Reitz > >> diff --git a/bl

Re: [Qemu-devel] [PATCH v2 for-2.10 2/4] block: Add errp to b{lk, drv}_truncate()

2017-03-23 Thread Kevin Wolf
Am 08.03.2017 um 20:14 hat Max Reitz geschrieben: > For one thing, this allows us to drop the error message generation from > qemu-img.c and blockdev.c and instead have it unified in > bdrv_truncate(). > > Signed-off-by: Max Reitz > diff --git a/block/qcow2.c b/block/qcow2.c > index 6a92d2ef3f..

[Qemu-devel] [PATCH v2 for-2.10 2/4] block: Add errp to b{lk, drv}_truncate()

2017-03-08 Thread Max Reitz
For one thing, this allows us to drop the error message generation from qemu-img.c and blockdev.c and instead have it unified in bdrv_truncate(). Signed-off-by: Max Reitz --- include/block/block.h | 2 +- include/sysemu/block-backend.h | 2 +- block.c| 16 +