From e97fc193e1c65deb51643d5251e98affe07c59ca Mon Sep 17 00:00:00 2001 From: aliguori Date: Tue, 21 Apr 2009 23:11:50 +0000 Subject: Introduce bdrv_check (Kevin Wolf) From: Kevin Wolf Introduce a new bdrv_check function pointer for block drivers. Modify qcow2 to return an error status in check_refcounts(), so it can implement bdrv_check. Signed-off-by: Kevin Wolf Signed-off-by: Anthony Liguori git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7214 c046a42c-6fe2-441c-8c8c-71466251a162 --- block_int.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'block_int.h') diff --git a/block_int.h b/block_int.h index 3e78997..e10b906 100644 --- a/block_int.h +++ b/block_int.h @@ -102,6 +102,9 @@ struct BlockDriver { const char *backing_file, const char *backing_format, int flags); + /* Returns number of errors in image, -errno for internal errors */ + int (*bdrv_check)(BlockDriverState* bs); + struct BlockDriver *next; }; -- cgit v1.1