]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: monitor: Remove JSON impls of drive_add and drive_del
authorPeter Krempa <pkrempa@redhat.com>
Fri, 11 Mar 2016 15:33:03 +0000 (16:33 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 29 Mar 2016 13:25:16 +0000 (15:25 +0200)
commit9f7d9891f0ae2c04970bba39fae59e3418bb0a5c
tree7a3425b6b9b0315f39c348c083deeb0b33099909
parent552bf13f45a646a38aeb243871930cb0c9d29dfb
qemu: monitor: Remove JSON impls of drive_add and drive_del

qemu won't ever add those functions directly to QMP. They will be
replaced with 'blockdev-add' and 'blockdev-del' eventually. At this time
there's no need to keep the stubs around.

Additionally the drive_del stub in JSON contained dead code in the
attempt to report errors. (VIR_ERR_OPERATION_UNSUPPORTED was never
reported). Since the text impl does have the same message it is reported
anyways.
src/qemu/qemu_monitor.c
src/qemu/qemu_monitor_json.c
src/qemu/qemu_monitor_json.h
src/qemu/qemu_monitor_text.c