[PATCH 0/4] qemu-img/io/nbd: Support help options for --object

Kevin Wolf posted 4 patches 4 years, 6 months ago
Test asan passed
Test FreeBSD passed
Test checkpatch passed
Test docker-mingw@fedora passed
Test docker-quick@centos7 passed
Test docker-clang@ubuntu passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20191011205551.32149-1-kwolf@redhat.com
Maintainers: Kevin Wolf <kwolf@redhat.com>, Eduardo Habkost <ehabkost@redhat.com>, Paolo Bonzini <pbonzini@redhat.com>, "Daniel P. Berrangé" <berrange@redhat.com>, Eric Blake <eblake@redhat.com>, Max Reitz <mreitz@redhat.com>
include/qom/object_interfaces.h | 12 +++++++
qemu-img.c                      | 34 +++++++++++-------
qemu-io.c                       |  9 ++++-
qemu-nbd.c                      |  9 ++++-
qom/object_interfaces.c         | 61 +++++++++++++++++++++++++++++++++
vl.c                            | 52 +---------------------------
6 files changed, 111 insertions(+), 66 deletions(-)
[PATCH 0/4] qemu-img/io/nbd: Support help options for --object
Posted by Kevin Wolf 4 years, 6 months ago
This series fixes that the tools don't consider help options for
--object and just treat them as regular object properties. For example:

    $ ./qemu-io --object secret,help
    qemu-io: Parameter 'id' is missing

With these patches, we get the expected behaviour like in the system
emulator.

Kevin Wolf (4):
  vl: Split off user_creatable_print_help()
  qemu-io: Support help options for --object
  qemu-img: Support help options for --object
  qemu-nbd: Support help options for --object

 include/qom/object_interfaces.h | 12 +++++++
 qemu-img.c                      | 34 +++++++++++-------
 qemu-io.c                       |  9 ++++-
 qemu-nbd.c                      |  9 ++++-
 qom/object_interfaces.c         | 61 +++++++++++++++++++++++++++++++++
 vl.c                            | 52 +---------------------------
 6 files changed, 111 insertions(+), 66 deletions(-)

-- 
2.20.1