]> git.proxmox.com Git - mirror_qemu.git/commit
block: drop unallocated_blocks_are_zero
authorVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Thu, 28 May 2020 09:44:04 +0000 (12:44 +0300)
committerMax Reitz <mreitz@redhat.com>
Mon, 6 Jul 2020 08:34:14 +0000 (10:34 +0200)
commita2adbbf603cee443ca923f6e8546267a706567d5
treedb3c6df1347a108d1a39791cf8a3a8b22c9fee6a
parentcdf9ebf18f32f4b29f99af58e154a9afe93bbc92
block: drop unallocated_blocks_are_zero

Currently this field only set by qed and qcow2. But in fact, all
backing-supporting formats (parallels, qcow, qcow2, qed, vmdk) share
these semantics: on unallocated blocks, if there is no backing file they
just memset the buffer with zeroes.

So, document this behavior for .supports_backing and drop
.unallocated_blocks_are_zero

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <20200528094405.145708-10-vsementsov@virtuozzo.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
block/io.c
block/qcow2.c
block/qed.c
include/block/block.h
include/block/block_int.h