|
|
ae23c9 |
From b8370cda9a44259acaba5f1760c0c8e58d52faaa Mon Sep 17 00:00:00 2001
|
|
|
ae23c9 |
From: Max Reitz <mreitz@redhat.com>
|
|
|
ae23c9 |
Date: Mon, 18 Jun 2018 14:59:39 +0200
|
|
|
ae23c9 |
Subject: [PATCH 066/268] qemu-option: Pull out "Supported options" print
|
|
|
ae23c9 |
|
|
|
ae23c9 |
RH-Author: Max Reitz <mreitz@redhat.com>
|
|
|
ae23c9 |
Message-id: <20180618145943.4489-4-mreitz@redhat.com>
|
|
|
ae23c9 |
Patchwork-id: 80756
|
|
|
ae23c9 |
O-Subject: [RHV-7.6 qemu-kvm-rhev PATCH 3/7] qemu-option: Pull out "Supported options" print
|
|
|
ae23c9 |
Bugzilla: 1537956
|
|
|
ae23c9 |
RH-Acked-by: John Snow <jsnow@redhat.com>
|
|
|
ae23c9 |
RH-Acked-by: Kevin Wolf <kwolf@redhat.com>
|
|
|
ae23c9 |
RH-Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
|
|
|
ae23c9 |
|
|
|
ae23c9 |
It really is up to the caller to decide what this list of options means.
|
|
|
ae23c9 |
|
|
|
ae23c9 |
Signed-off-by: Max Reitz <mreitz@redhat.com>
|
|
|
ae23c9 |
Reviewed-by: John Snow <jsnow@redhat.com>
|
|
|
ae23c9 |
Reviewed-by: Eric Blake <eblake@redhat.com>
|
|
|
ae23c9 |
Message-id: 20180509210023.20283-4-mreitz@redhat.com
|
|
|
ae23c9 |
Signed-off-by: Max Reitz <mreitz@redhat.com>
|
|
|
ae23c9 |
(cherry picked from commit 7f3fb00136aaec74df8132492d1f48b8e9840258)
|
|
|
ae23c9 |
Signed-off-by: Max Reitz <mreitz@redhat.com>
|
|
|
ae23c9 |
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
ae23c9 |
---
|
|
|
ae23c9 |
qemu-img.c | 1 +
|
|
|
ae23c9 |
util/qemu-option.c | 1 -
|
|
|
ae23c9 |
2 files changed, 1 insertion(+), 1 deletion(-)
|
|
|
ae23c9 |
|
|
|
ae23c9 |
diff --git a/qemu-img.c b/qemu-img.c
|
|
|
ae23c9 |
index e40d6ff..cdeb01b 100644
|
|
|
ae23c9 |
--- a/qemu-img.c
|
|
|
ae23c9 |
+++ b/qemu-img.c
|
|
|
ae23c9 |
@@ -261,6 +261,7 @@ static int print_block_option_help(const char *filename, const char *fmt)
|
|
|
ae23c9 |
create_opts = qemu_opts_append(create_opts, proto_drv->create_opts);
|
|
|
ae23c9 |
}
|
|
|
ae23c9 |
|
|
|
ae23c9 |
+ printf("Supported options:\n");
|
|
|
ae23c9 |
qemu_opts_print_help(create_opts);
|
|
|
ae23c9 |
qemu_opts_free(create_opts);
|
|
|
ae23c9 |
return 0;
|
|
|
ae23c9 |
diff --git a/util/qemu-option.c b/util/qemu-option.c
|
|
|
ae23c9 |
index d0756fd..95e6cf4 100644
|
|
|
ae23c9 |
--- a/util/qemu-option.c
|
|
|
ae23c9 |
+++ b/util/qemu-option.c
|
|
|
ae23c9 |
@@ -218,7 +218,6 @@ void qemu_opts_print_help(QemuOptsList *list)
|
|
|
ae23c9 |
|
|
|
ae23c9 |
assert(list);
|
|
|
ae23c9 |
desc = list->desc;
|
|
|
ae23c9 |
- printf("Supported options:\n");
|
|
|
ae23c9 |
while (desc && desc->name) {
|
|
|
ae23c9 |
printf("%-16s %s\n", desc->name,
|
|
|
ae23c9 |
desc->help ? desc->help : "No description available");
|
|
|
ae23c9 |
--
|
|
|
ae23c9 |
1.8.3.1
|
|
|
ae23c9 |
|