]> git.ipfire.org Git - thirdparty/qemu.git/commit
block: Add BDRV_REQ_NO_FALLBACK
authorKevin Wolf <kwolf@redhat.com>
Fri, 22 Mar 2019 12:38:43 +0000 (13:38 +0100)
committerKevin Wolf <kwolf@redhat.com>
Tue, 26 Mar 2019 10:37:51 +0000 (11:37 +0100)
commitfe0480d6294270ff0d6fb60e66bb725a6aad2043
tree86c0e0d0d3582b8cce53b18b0b3ecc7f942bf84b
parent48ce986096bb70354b12f0becb253a06bcf9c434
block: Add BDRV_REQ_NO_FALLBACK

For qemu-img convert, we want an operation that zeroes out the whole
image if this can be done efficiently, but that returns an error
otherwise so we don't write explicit zeroes and immediately overwrite
them with the real data, potentially doubling the amount of data to be
written.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Acked-by: Eric Blake <eblake@redhat.com>
block/io.c
include/block/block.h