summaryrefslogtreecommitdiffstats
path: root/include/block
diff options
context:
space:
mode:
authorEric Blake2020-04-28 22:29:04 +0200
committerKevin Wolf2020-05-08 13:26:35 +0200
commitdbc636e791ad04b6bcdec982d2b9c45d7182e037 (patch)
tree0db058489ccead7a9f1c8b574157a4cc2c4728da /include/block
parentparallels: Rework truncation logic (diff)
downloadqemu-dbc636e791ad04b6bcdec982d2b9c45d7182e037.tar.gz
qemu-dbc636e791ad04b6bcdec982d2b9c45d7182e037.tar.xz
qemu-dbc636e791ad04b6bcdec982d2b9c45d7182e037.zip
vhdx: Rework truncation logic
The vhdx driver uses truncation for image growth, with a special case for blocks that already read as zero but which are only being partially written. But with a bit of rearranging, it's just as easy to defer the decision on whether truncation resulted in zeroes to the actual allocation attempt, reducing the number of places that still use bdrv_has_zero_init_truncate. Signed-off-by: Eric Blake <eblake@redhat.com> Message-Id: <20200428202905.770727-9-eblake@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'include/block')
0 files changed, 0 insertions, 0 deletions