aboutsummaryrefslogtreecommitdiff
path: root/include/block
diff options
context:
space:
mode:
authorEric Blake <eblake@redhat.com>2020-04-28 15:29:04 -0500
committerKevin Wolf <kwolf@redhat.com>2020-05-08 13:26:35 +0200
commitdbc636e791ad04b6bcdec982d2b9c45d7182e037 (patch)
tree0db058489ccead7a9f1c8b574157a4cc2c4728da /include/block
parentbda4cdcbb997d34762e2af27e1f475357a9b4453 (diff)
downloadqemu-dbc636e791ad04b6bcdec982d2b9c45d7182e037.zip
qemu-dbc636e791ad04b6bcdec982d2b9c45d7182e037.tar.gz
qemu-dbc636e791ad04b6bcdec982d2b9c45d7182e037.tar.bz2
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