Based-on: <20200424125448.63318-1-kw...@redhat.com> [PATCH v7 00/10] block: Fix resize (extending) of short overlays
After reviewing Kevin's work, I questioned if we had a redundancy with bdrv_has_zero_init_truncate. It turns out we do, and this is the result. Patch 1 has been previously posted [1] and reviewed, the rest is new. I did not address Neils' comment that modern gluster also always 0-initializes [2], as I am not set up to verify it (my changes to the other drivers are semantic no-ops, so I don't feel as bad about posting them with less rigourous testing). [1] https://lists.gnu.org/archive/html/qemu-devel/2020-01/msg08070.html [2] https://lists.gnu.org/archive/html/qemu-devel/2020-02/msg04266.html Eric Blake (9): gluster: Drop useless has_zero_init callback file-win32: Support BDRV_REQ_ZERO_WRITE for truncate nfs: Support BDRV_REQ_ZERO_WRITE for truncate rbd: Support BDRV_REQ_ZERO_WRITE for truncate sheepdog: Support BDRV_REQ_ZERO_WRITE for truncate ssh: Support BDRV_REQ_ZERO_WRITE for truncate parallels: Rework truncation logic vhdx: Rework truncation logic block: Drop unused .bdrv_has_zero_init_truncate include/block/block.h | 1 - include/block/block_int.h | 7 --- block.c | 21 --------- block/file-posix.c | 1 - block/file-win32.c | 4 +- block/gluster.c | 14 ------ block/nfs.c | 4 +- block/parallels.c | 23 ++++++---- block/qcow2.c | 1 - block/qed.c | 1 - block/raw-format.c | 6 --- block/rbd.c | 4 +- block/sheepdog.c | 4 +- block/ssh.c | 5 ++- block/vhdx.c | 89 ++++++++++++++++++++++----------------- 15 files changed, 80 insertions(+), 105 deletions(-) -- 2.26.2