diff options
author | Anthony Liguori <aliguori@us.ibm.com> | 2010-07-06 10:48:01 -0500 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2010-07-06 10:48:01 -0500 |
commit | 415bd7740db3b74d3541ff349226fc8b8c7652ee (patch) | |
tree | 4ef1809f16a7f30f237840cdbfc5521afd4e8316 /block.h | |
parent | 4c977805303dafaa346161f9312f9246133dfe27 (diff) | |
parent | 8076cdb2a524eb0f18ac6d23445c32c74d87c39d (diff) | |
download | qemu-415bd7740db3b74d3541ff349226fc8b8c7652ee.tar.gz qemu-415bd7740db3b74d3541ff349226fc8b8c7652ee.tar.bz2 qemu-415bd7740db3b74d3541ff349226fc8b8c7652ee.zip |
Merge remote branch 'kwolf/for-anthony' into staging
Diffstat (limited to 'block.h')
-rw-r--r-- | block.h | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -74,7 +74,6 @@ void bdrv_close(BlockDriverState *bs); int bdrv_attach(BlockDriverState *bs, DeviceState *qdev); void bdrv_detach(BlockDriverState *bs, DeviceState *qdev); DeviceState *bdrv_get_attached(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, @@ -97,6 +96,15 @@ int bdrv_change_backing_file(BlockDriverState *bs, const char *backing_file, const char *backing_fmt); void bdrv_register(BlockDriver *bdrv); + +typedef struct BdrvCheckResult { + int corruptions; + int leaks; + int check_errors; +} BdrvCheckResult; + +int bdrv_check(BlockDriverState *bs, BdrvCheckResult *res); + /* async block I/O */ typedef struct BlockDriverAIOCB BlockDriverAIOCB; typedef void BlockDriverCompletionFunc(void *opaque, int ret); |