Max Reitz b647d69adc block: Use bdrv_has_zero_init_truncate()
vhdx and parallels call bdrv_has_zero_init() when they do not really
care about an image's post-create state but only about what happens when
you grow an image.  That is a bit ugly, and also overly safe when
growing preallocated images without preallocating the new areas.

Let them use bdrv_has_zero_init_truncate() instead.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Message-id: 20190724171239.8764-6-mreitz@redhat.com
Reviewed-by: Maxim Levitsky <mlevitsk@redhat.com>
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
[mreitz: Added commit message]
Signed-off-by: Max Reitz <mreitz@redhat.com>
2019-08-19 17:13:26 +02:00
..
2019-08-16 18:29:43 -04:00
2019-08-16 16:43:46 +01:00
2019-08-16 13:31:52 +02:00
2019-08-19 17:13:26 +02:00
2019-08-16 15:53:37 +01:00
2019-08-19 17:13:26 +02:00
2019-08-16 15:53:37 +01:00
2019-08-16 13:31:52 +02:00
2019-08-15 13:22:13 -05:00