mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
pr-manager: add query-pr-managers QMP command
This command lets you query the connection status of each pr-manager-helper object. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
58b3017f7f
commit
5f64089416
5 changed files with 94 additions and 0 deletions
|
@ -77,6 +77,34 @@
|
|||
{ 'struct': 'BlockdevSnapshotInternal',
|
||||
'data': { 'device': 'str', 'name': 'str' } }
|
||||
|
||||
##
|
||||
# @PRManagerInfo:
|
||||
#
|
||||
# Information about a persistent reservation manager
|
||||
#
|
||||
# @id: the identifier of the persistent reservation manager
|
||||
#
|
||||
# @connected: true if the persistent reservation manager is connected to
|
||||
# the underlying storage or helper
|
||||
#
|
||||
# Since: 3.0
|
||||
##
|
||||
{ 'struct': 'PRManagerInfo',
|
||||
'data': {'id': 'str', 'connected': 'bool'} }
|
||||
|
||||
##
|
||||
# @query-pr-managers:
|
||||
#
|
||||
# Returns a list of information about each persistent reservation manager.
|
||||
#
|
||||
# Returns: a list of @PRManagerInfo for each persistent reservation manager
|
||||
#
|
||||
# Since: 3.0
|
||||
##
|
||||
{ 'command': 'query-pr-managers', 'returns': ['PRManagerInfo'],
|
||||
'allow-preconfig': true }
|
||||
|
||||
|
||||
##
|
||||
# @blockdev-snapshot-internal-sync:
|
||||
#
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue