summaryrefslogtreecommitdiffstats
path: root/block/copy-before-write.h
diff options
context:
space:
mode:
authorVladimir Sementsov-Ogievskiy2021-08-24 10:38:31 +0200
committerHanna Reitz2021-09-01 14:03:11 +0200
commitb518e9e9ef7a28aa559a05d44dd734e83ae75f9d (patch)
tree11eb3251f94ac482e3a4c4a0bd368bb71896de03 /block/copy-before-write.h
parentblock/backup: set copy_range and compress after filter insertion (diff)
downloadqemu-b518e9e9ef7a28aa559a05d44dd734e83ae75f9d.tar.gz
qemu-b518e9e9ef7a28aa559a05d44dd734e83ae75f9d.tar.xz
qemu-b518e9e9ef7a28aa559a05d44dd734e83ae75f9d.zip
block/backup: move cluster size calculation to block-copy
The main consumer of cluster-size is block-copy. Let's calculate it here instead of passing through backup-top. We are going to publish copy-before-write filter soon, so it will be created through options. But we don't want for now to make explicit option for cluster-size, let's continue to calculate it automatically. So, now is the time to get rid of cluster_size argument for bdrv_cbw_append(). Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> Reviewed-by: Max Reitz <mreitz@redhat.com> Message-Id: <20210824083856.17408-10-vsementsov@virtuozzo.com> [hreitz: Add qemu/error-report.h include to block/block-copy.c] Signed-off-by: Hanna Reitz <hreitz@redhat.com>
Diffstat (limited to 'block/copy-before-write.h')
-rw-r--r--block/copy-before-write.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/block/copy-before-write.h b/block/copy-before-write.h
index 538aab8bdb..b386fd8f01 100644
--- a/block/copy-before-write.h
+++ b/block/copy-before-write.h
@@ -32,7 +32,6 @@
BlockDriverState *bdrv_cbw_append(BlockDriverState *source,
BlockDriverState *target,
const char *filter_node_name,
- uint64_t cluster_size,
bool compress,
BlockCopyState **bcs,
Error **errp);