]> git.proxmox.com Git - mirror_qemu.git/commit - block/stream.c
block: apply COR-filter to block-stream jobs
authorAndrey Shinkevich <andrey.shinkevich@virtuozzo.com>
Wed, 16 Dec 2020 06:17:03 +0000 (09:17 +0300)
committerMax Reitz <mreitz@redhat.com>
Tue, 26 Jan 2021 13:36:37 +0000 (14:36 +0100)
commit205736f4888e6c2bf1a78712cf0fc84d9f7cbcee
treed6cbb0fe14f9990208ffd1c39ad8436f4e6a7d49
parent0f6c94988afdf38228abdaf0b5504cc115f63836
block: apply COR-filter to block-stream jobs

This patch completes the series with the COR-filter applied to
block-stream operations.

Adding the filter makes it possible in future implement discarding
copied regions in backing files during the block-stream job, to reduce
the disk overuse (we need control on permissions).

Also, the filter now is smart enough to do copy-on-read with specified
base, so we have benefit on guest reads even when doing block-stream of
the part of the backing chain.

Several iotests are slightly modified due to filter insertion.

Signed-off-by: Andrey Shinkevich <andrey.shinkevich@virtuozzo.com>
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Message-Id: <20201216061703.70908-14-vsementsov@virtuozzo.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
block/stream.c
tests/qemu-iotests/030
tests/qemu-iotests/141.out
tests/qemu-iotests/245