On Mon, Sep 14, 2026 at 11:00:36AM +0200, Thomas Huth wrote:
> Other command line options like "-chardev", "-netdev" or "-device"
> already present the user with a list of available parameters, but
> when running "-blockdev help", there is currently only an error
> message. There is already the possibility to run "-drive format=help",
> but it does not seem to be documented, so this is not very useful
> for the average user. Thus let's improve this situation by providing
> a proper list of available drivers when running QEMU with
> "-blockdev help".
> 
> Signed-off-by: Thomas Huth <[email protected]>
> ---
>  v2: Don't re-use the code from "-drive format=help" and print the
>      help in a better readable way instead

One format per line rather than space-separated does seem a bit more
machine-parseable, although the output no longer fits in my preferred
terminal size without scrolling. I guess "more readable" is subjective
;)

> 
>  include/block/block-common.h |  1 +
>  block.c                      | 15 +++++++++++++++
>  system/vl.c                  |  7 +++++--
>  3 files changed, 21 insertions(+), 2 deletions(-)

Reviewed-by: Eric Blake <[email protected]>
Tested-by: Eric Blake <[email protected]>

-- 
Eric Blake, Principal Software Engineer
Red Hat, Inc.
Virtualization:  qemu.org | libguestfs.org


Reply via email to