qcow2: Remove wrong metadata overlap check
authorMax Reitz <mreitz@redhat.com>
Wed, 9 Oct 2013 12:41:28 +0000 (14:41 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 11 Oct 2013 14:49:59 +0000 (16:49 +0200)
commitf9bff971436b5924ca3c3203c6a3dcd6437bd430
treef95d695b714871789c721066411ed6343e7ec15e
parent9e3f08923a14ba0655c6797edd9ffef44bb8cbf2
qcow2: Remove wrong metadata overlap check

In qcow2_write_compressed, if the compression fails, a normal cluster is
written to disk. This is done through bdrv_write on the qcow2 BDS
itself (using the guest offset), thus it is wrong to do a metadata
overlap check before.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/qcow2.c