Re: [Qemu-devel] [PATCH for-2.10 2/3] block: Add errp to BD.bdrv_truncate()

2017-03-06 Thread Max Reitz
On 06.03.2017 20:54, Max Reitz wrote: > Add an Error parameter to the block drivers' bdrv_truncate() interface. > If a block driver does not set this in case of an error, the generic > bdrv_truncate() implementation will do so. > > Where it is obvious, this patch also makes some block drivers set

[Qemu-devel] [PATCH for-2.10 2/3] block: Add errp to BD.bdrv_truncate()

2017-03-06 Thread Max Reitz
Add an Error parameter to the block drivers' bdrv_truncate() interface. If a block driver does not set this in case of an error, the generic bdrv_truncate() implementation will do so. Where it is obvious, this patch also makes some block drivers set this value. Signed-off-by: Max Reitz --- incl