mirror of
https://github.com/mii443/qemu.git
synced 2025-08-31 03:19:27 +00:00
Introduce bdrv_check (Kevin Wolf)
From: Kevin Wolf <kwolf@redhat.com> 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 <kwolf@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7214 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
@ -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;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user