block: Add 'active' field to BlockDeviceInfo
This allows querying from QMP (and also HMP) whether an image is currently active or inactive (in the sense of BDRV_O_INACTIVE). Signed-off-by: Kevin Wolf <kwolf@redhat.com> Acked-by: Fabiano Rosas <farosas@suse.de> Reviewed-by: Eric Blake <eblake@redhat.com> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Message-ID: <20250204211407.381505-2-kwolf@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
parent
107c551de0
commit
aec81049c2
8 changed files with 39 additions and 3 deletions
|
|
@ -175,6 +175,9 @@ BlockDriverState * GRAPH_RDLOCK
|
|||
check_to_replace_node(BlockDriverState *parent_bs, const char *node_name,
|
||||
Error **errp);
|
||||
|
||||
|
||||
bool GRAPH_RDLOCK bdrv_is_inactive(BlockDriverState *bs);
|
||||
|
||||
int no_coroutine_fn GRAPH_RDLOCK
|
||||
bdrv_activate(BlockDriverState *bs, Error **errp);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue