Re: [Qemu-block] [PATCH v2 04/11] block: Implement .bdrv_has_zero_init_truncate()

2019-07-26 Thread Stefano Garzarella
On Wed, Jul 24, 2019 at 07:12:32PM +0200, Max Reitz wrote: > We need to implement .bdrv_has_zero_init_truncate() for every block > driver that supports truncation and has a .bdrv_has_zero_init() > implementation. > > Implement it the same way each driver implements .bdrv_has_zero_init(). > This is

[Qemu-block] [PATCH v2 04/11] block: Implement .bdrv_has_zero_init_truncate()

2019-07-24 Thread Max Reitz
We need to implement .bdrv_has_zero_init_truncate() for every block driver that supports truncation and has a .bdrv_has_zero_init() implementation. Implement it the same way each driver implements .bdrv_has_zero_init(). This is at least not any more unsafe than what we had before. Signed-off-by: