Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.5:Update
qemu.29316
Convert-query-named-block-nodes-to-corou.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File Convert-query-named-block-nodes-to-corou.patch of Package qemu.29316
From: Dario Faggioli <dfaggioli@suse.com> Date: Thu, 1 Jun 2023 16:29:20 +0200 Subject: Convert query-named-block-nodes to coroutine Git-commit: Not yet References: bsc#1211000 Signed-off-by: Lin Ma <lma@suse.com> Signed-off-by: Dario Faggioli <dfaggioli@suse.com> --- blockdev.c | 6 +++--- qapi/block-core.json | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/blockdev.c b/blockdev.c index b35072644eba92fa1291d1c270af..3bb652952d0a550cb0bac6d7bbbe 100644 --- a/blockdev.c +++ b/blockdev.c @@ -2926,9 +2926,9 @@ void qmp_drive_backup(DriveBackup *backup, Error **errp) blockdev_do_action(&action, errp); } -BlockDeviceInfoList *qmp_query_named_block_nodes(bool has_flat, - bool flat, - Error **errp) +BlockDeviceInfoList *coroutine_fn qmp_query_named_block_nodes(bool has_flat, + bool flat, + Error **errp) { bool return_flat = has_flat && flat; diff --git a/qapi/block-core.json b/qapi/block-core.json index a48adf43054950e2a29b6a09e50c..91cb08265701e43511ffd2d5bbfd 100644 --- a/qapi/block-core.json +++ b/qapi/block-core.json @@ -1818,7 +1818,8 @@ ## { 'command': 'query-named-block-nodes', 'returns': [ 'BlockDeviceInfo' ], - 'data': { '*flat': 'bool' } } + 'data': { '*flat': 'bool' }, + 'coroutine': true } ## # @XDbgBlockGraphNodeType:
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor