Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.5:Update
qemu.29315
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.29315
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 e4dfa65aa444346c3c09dbc6d1c5..320d46c3f8826546bf43fe7009ee 100644 --- a/blockdev.c +++ b/blockdev.c @@ -2902,9 +2902,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 955b12a2b8c911e574d17952f32e..5b733b1c5bdfd4021ede944ed450 100644 --- a/qapi/block-core.json +++ b/qapi/block-core.json @@ -1798,7 +1798,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