mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 23:03:54 -06:00
block: add snapshot info query function bdrv_query_snapshot_info_list()
This patch adds function bdrv_query_snapshot_info_list(), which will retrieve snapshot info of an image in qmp object format. The implementation is based on the code moved from qemu-img.c with modification to fit more for qmp based block layer API. Signed-off-by: Wenchao Xia <xiawenc@linux.vnet.ibm.com> Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
This commit is contained in:
parent
bd07684aac
commit
fb0ed4539c
3 changed files with 49 additions and 15 deletions
|
@ -29,7 +29,9 @@
|
|||
#include "block/block.h"
|
||||
#include "block/snapshot.h"
|
||||
|
||||
void bdrv_collect_snapshots(BlockDriverState *bs , ImageInfo *info);
|
||||
int bdrv_query_snapshot_info_list(BlockDriverState *bs,
|
||||
SnapshotInfoList **p_list,
|
||||
Error **errp);
|
||||
void bdrv_collect_image_info(BlockDriverState *bs,
|
||||
ImageInfo *info,
|
||||
const char *filename);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue