qcow2: Change handle_dependency to byte granularity
authorKevin Wolf <kwolf@redhat.com>
Tue, 26 Mar 2013 16:49:58 +0000 (17:49 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Thu, 28 Mar 2013 10:52:43 +0000 (11:52 +0100)
commit65eb2e35c07632eb5d26f15a57461e321bacb883
treef12c372eedb0309737bc1bb573f94531464a892d
parentd9d74f4177af59bec23baa480d640709f56df0aa
qcow2: Change handle_dependency to byte granularity

This is a more precise description of what really constitutes a
dependency. The behaviour doesn't change at this point because the COW
area of the old request is still aligned to cluster boundaries and
therefore an overlap is detected wheneven the requests touch any part of
the same cluster.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
block/qcow2-cluster.c
block/qcow2.h