On Wed, Feb 13, 2013 at 02:21:51PM +0100, Kevin Wolf wrote:
@@ -882,20 +876,55 @@ int qcow2_alloc_cluster_offset(BlockDriverState *bs,
uint64_t offset,
trace_qcow2_alloc_clusters_offset(qemu_coroutine_self(), offset,
n_start, n_end);
-/*
Handling overlapping allocations isn't just a detail of cluster
allocation. It is rather one of three ways to get the host cluster
offset for a write request:
1. If a request overlaps an in-flight allocations, the cluster offset
can be taken from there (this is what handle_dependencies will