qcow2: Fix DEBUG_* compilation
authorPhilipp Hahn <hahn@univention.de>
Thu, 4 Aug 2011 17:22:10 +0000 (19:22 +0200)
committerKevin Wolf <kwolf@redhat.com>
Tue, 23 Aug 2011 12:15:17 +0000 (14:15 +0200)
commit4380b78b3a5240cc0838c4edbb7c01b9dc5ac897
treeced7f6022bc4d1f3995c223d1389259e0c774db8
parent6eb289a4a28bf43a989690ff02a3c39db15deb3d
qcow2: Fix DEBUG_* compilation

By introducing BlockDriverState compiling qcow2 with DEBUG_ALLOC and DEBUG_EXT
defined got broken.
Define a BdrvCheckResult structure locally which is now needed as the second
argument.

Also fix qcow2_read_extensions() needing BDRVQcowState.

Signed-off-by: Philipp Hahn <hahn@univention.de>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/qcow2-snapshot.c
block/qcow2.c