diff options
author | Anton Nefedov | 2019-09-23 14:17:37 +0200 |
---|---|---|
committer | Max Reitz | 2019-10-10 10:56:18 +0200 |
commit | d924559953c0b679582548d8fd8af025667051e3 (patch) | |
tree | 78ed49162199ff0a33f6ff6c1497bf2881107da0 /include/block/block.h | |
parent | file-posix: account discard operations (diff) | |
download | qemu-d924559953c0b679582548d8fd8af025667051e3.tar.gz qemu-d924559953c0b679582548d8fd8af025667051e3.tar.xz qemu-d924559953c0b679582548d8fd8af025667051e3.zip |
qapi: query-blockstat: add driver specific file-posix stats
A block driver can provide a callback to report driver-specific
statistics.
file-posix driver now reports discard statistics
Signed-off-by: Anton Nefedov <anton.nefedov@virtuozzo.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Acked-by: Markus Armbruster <armbru@redhat.com>
Message-id: 20190923121737.83281-10-anton.nefedov@virtuozzo.com
Signed-off-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'include/block/block.h')
-rw-r--r-- | include/block/block.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/block/block.h b/include/block/block.h index 37c9de7446..792bb826db 100644 --- a/include/block/block.h +++ b/include/block/block.h @@ -501,6 +501,7 @@ int bdrv_get_flags(BlockDriverState *bs); int bdrv_get_info(BlockDriverState *bs, BlockDriverInfo *bdi); ImageInfoSpecific *bdrv_get_specific_info(BlockDriverState *bs, Error **errp); +BlockStatsSpecific *bdrv_get_specific_stats(BlockDriverState *bs); void bdrv_round_to_clusters(BlockDriverState *bs, int64_t offset, int64_t bytes, int64_t *cluster_offset, |