qemu-storage-daemon: Enable object-add
PATCH 1/1 qemu-storage-daemon: Enable object-add
As we don't have a fully QAPIfied version of object-add yet and it still has 'gen': false in the schema, it needs to be registered explicitly in init_qmp_commands() to be available for users.
Fixes 2af282ec51a27116d0402cab237b8970800f870c
Signed-off-by Kevin Wolf <[email protected]>
--- storage-daemon/qemu-storage-daemon.c | 2 ++ 1 file changed, 2 insertions(+)
storage-daemon/qemu-storage-daemon.c +2 -0
@@ -144,6 +144,8 @@ static void init_qmp_commands(void)qmp_init_marshal (&qmp_commands);qmp_register_command (&qmp_commands,"query-qmp-schema" , qmp_query_qmp_schema,QCO_ALLOW_PRECONFIG ); +qmp_register_command (&qmp_commands,"object-add" , qmp_object_add, +QCO_NO_OPTIONS );QTAILQ_INIT (&qmp_cap_negotiation_commands); qmp_register_command(&qmp_cap_negotiation_commands, "qmp_capabilities",
Signature · 1 line
2.29.2
Quoted 9 lines · Kevin Wolf
As we don't have a fully QAPIfied version of object-add yet and it still has 'gen': false in the schema, it needs to be registered explicitly in
init_qmp_commands()to be available for users.Fixes 2af282ec51a27116d0402cab237b8970800f870cSigned-off-by Kevin Wolf <[email protected]>--- storage-daemon/qemu-storage-daemon.c | 2 ++ 1 file changed, 2 insertions(+)
Reviewed-by Daniel P. Berrangé <[email protected]>
Regards,
Daniel
Signature · 3 lines
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|