Skip to content
Snippets Groups Projects
Commit b647d69a authored by Hanna Reitz's avatar Hanna Reitz
Browse files

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: default avatarMax Reitz <mreitz@redhat.com>
Message-id: 20190724171239.8764-6-mreitz@redhat.com
Reviewed-by: default avatarMaxim Levitsky <mlevitsk@redhat.com>
Reviewed-by: default avatarStefano Garzarella <sgarzare@redhat.com>
[mreitz: Added commit message]
Signed-off-by: default avatarMax Reitz <mreitz@redhat.com>
parent 1dcaf527
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment