diff options
| author | Kevin Wolf | 2020-04-24 14:54:42 +0200 |
|---|---|---|
| committer | Kevin Wolf | 2020-04-30 17:51:07 +0200 |
| commit | f01643fb8b47e8a70c04bbf45e0f12a9e5bc54de (patch) | |
| tree | 446a67520b49b8cde4e1fa8905af815cb107d462 /include | |
| parent | block-backend: Add flags to blk_truncate() (diff) | |
| download | qemu-f01643fb8b47e8a70c04bbf45e0f12a9e5bc54de.tar.gz qemu-f01643fb8b47e8a70c04bbf45e0f12a9e5bc54de.tar.xz qemu-f01643fb8b47e8a70c04bbf45e0f12a9e5bc54de.zip | |
qcow2: Support BDRV_REQ_ZERO_WRITE for truncate
If BDRV_REQ_ZERO_WRITE is set and we're extending the image, calling
qcow2_cluster_zeroize() with flags=0 does the right thing: It doesn't
undo any previous preallocation, but just adds the zero flag to all
relevant L2 entries. If an external data file is in use, a write_zeroes
request to the data file is made instead.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Message-Id: <20200424125448.63318-5-kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
