diff options
| author | aliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162> | 2009-04-21 23:11:50 +0000 |
|---|---|---|
| committer | aliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162> | 2009-04-21 23:11:50 +0000 |
| commit | e97fc193e1c65deb51643d5251e98affe07c59ca (patch) | |
| tree | 0710756bf0c23f8a236866e56edafbfecf1ea5ed /block.h | |
| parent | 8ddbc04f067e6f8c63f1e0f60a7d10bf9036fd9a (diff) | |
| download | focaccia-qemu-e97fc193e1c65deb51643d5251e98affe07c59ca.tar.gz focaccia-qemu-e97fc193e1c65deb51643d5251e98affe07c59ca.zip | |
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
Diffstat (limited to 'block.h')
| -rw-r--r-- | block.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/block.h b/block.h index ca672a1307..5aef07656b 100644 --- a/block.h +++ b/block.h @@ -73,6 +73,7 @@ int bdrv_open(BlockDriverState *bs, const char *filename, int flags); int bdrv_open2(BlockDriverState *bs, const char *filename, int flags, BlockDriver *drv); void bdrv_close(BlockDriverState *bs); +int bdrv_check(BlockDriverState *bs); int bdrv_read(BlockDriverState *bs, int64_t sector_num, uint8_t *buf, int nb_sectors); int bdrv_write(BlockDriverState *bs, int64_t sector_num, |