diff options
author | Vladimir Sementsov-Ogievskiy | 2021-08-24 10:38:28 +0200 |
---|---|---|
committer | Hanna Reitz | 2021-09-01 12:57:31 +0200 |
commit | 49577723d40f56f7ac3d2f880423ae6652a2922d (patch) | |
tree | 24edb6cca1e166358bf78be39ffe1cee0f2e8c37 /block/copy-before-write.h | |
parent | block: rename backup-top to copy-before-write (diff) | |
download | qemu-49577723d40f56f7ac3d2f880423ae6652a2922d.tar.gz qemu-49577723d40f56f7ac3d2f880423ae6652a2922d.tar.xz qemu-49577723d40f56f7ac3d2f880423ae6652a2922d.zip |
block-copy: move detecting fleecing scheme to block-copy
We want to simplify initialization interface of copy-before-write
filter as we are going to make it public. So, let's detect fleecing
scheme exactly in block-copy code, to not pass this information through
extra levels.
Why not just set BDRV_REQ_SERIALISING unconditionally: because we are
going to implement new more efficient fleecing scheme which will not
rely on backing feature.
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Reviewed-by: Hanna Reitz <hreitz@redhat.com>
Message-Id: <20210824083856.17408-7-vsementsov@virtuozzo.com>
Signed-off-by: Hanna Reitz <hreitz@redhat.com>
Diffstat (limited to 'block/copy-before-write.h')
-rw-r--r-- | block/copy-before-write.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/copy-before-write.h b/block/copy-before-write.h index 5977b7aa31..f37e2249ae 100644 --- a/block/copy-before-write.h +++ b/block/copy-before-write.h @@ -34,7 +34,7 @@ BlockDriverState *bdrv_cbw_append(BlockDriverState *source, const char *filter_node_name, uint64_t cluster_size, BackupPerf *perf, - BdrvRequestFlags write_flags, + bool compress, BlockCopyState **bcs, Error **errp); void bdrv_cbw_drop(BlockDriverState *bs); |