qcow2: Improve check for overlapping allocations
authorKevin Wolf <kwolf@redhat.com>
Tue, 26 Mar 2013 16:49:57 +0000 (17:49 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Thu, 28 Mar 2013 10:52:43 +0000 (11:52 +0100)
commitd9d74f4177af59bec23baa480d640709f56df0aa
tree6449b4dbf64d71238416e1a1ce2a2ca28c51caaa
parent17a71e58238138c3f02be7e9f5dc8de5d72a9a9d
qcow2: Improve check for overlapping allocations

The old code detected an overlapping allocation even when the
allocations didn't actually overlap, but were only adjacent.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
block/qcow2-cluster.c
tests/qemu-iotests/038.out