]> git.ipfire.org Git - thirdparty/qemu.git/commit
raw-format: Support BDRV_REQ_ZERO_WRITE for truncate
authorKevin Wolf <kwolf@redhat.com>
Fri, 24 Apr 2020 12:54:43 +0000 (14:54 +0200)
committerKevin Wolf <kwolf@redhat.com>
Thu, 30 Apr 2020 15:51:07 +0000 (17:51 +0200)
commit1ddaabaecb7eaeb6d8948a32340af95db44c54a1
tree5f782ff0a2e0ef06286aafb5ca471600dac9265a
parentf01643fb8b47e8a70c04bbf45e0f12a9e5bc54de
raw-format: Support BDRV_REQ_ZERO_WRITE for truncate

The raw format driver can simply forward the flag and let its bs->file
child take care of actually providing the zeros.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Message-Id: <20200424125448.63318-6-kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/raw-format.c