diff options
author | Eric Blake | 2020-04-28 22:29:04 +0200 |
---|---|---|
committer | Kevin Wolf | 2020-05-08 13:26:35 +0200 |
commit | dbc636e791ad04b6bcdec982d2b9c45d7182e037 (patch) | |
tree | 0db058489ccead7a9f1c8b574157a4cc2c4728da /include/block | |
parent | parallels: Rework truncation logic (diff) | |
download | qemu-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