All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kevin Wolf <kwolf@redhat.com>
To: Eric Blake <eblake@redhat.com>
Cc: "Max Reitz" <mreitz@redhat.com>,
	qemu-block@nongnu.org, qemu-devel@nongnu.org,
	"Philippe Mathieu-Daudé" <f4bug@amsat.org>
Subject: Re: [Qemu-devel] [PATCH v2 3/3] qemu-img: Document backing options
Date: Fri, 28 Apr 2017 11:38:25 +0200	[thread overview]
Message-ID: <20170428093825.GB4714@noname.redhat.com> (raw)
In-Reply-To: <a78836bc-8a79-6164-1101-6aa756c07a40@redhat.com>

[-- Attachment #1: Type: text/plain, Size: 1097 bytes --]

Am 27.04.2017 um 17:36 hat Eric Blake geschrieben:
> On 04/26/2017 08:46 AM, Max Reitz wrote:
> > I think originally the idea was to remove the individual special case
> > options in the long term in favour of the uniform -o. But I don't think
> > the short options have fallen out of use, so we can as well document
> > them again...
> >
> > Maybe we could change the implementation, however, so that the old
> > options are really just aliases for the respective -o version.
> 
> As in, a followup patch that adds a paragraph or two to the .texi file
> stating that '-B @var{backing_file}' is shorthand for '-o
> backing_file=@var{backing_file}'?

First and foremost, I meant in the C code where we have separate
variables for all the shorthand options and then need to handle both
ways explicitly in the code further down. Instead, -B could just
directly add a 'backing_file' key to a QemuOpts (and -o would do the
same instead of building a string that is parsed only later).

But the documentation change that you're suggesting is probably a good
idea as well.

Kevin

[-- Attachment #2: Type: application/pgp-signature, Size: 836 bytes --]

  reply	other threads:[~2017-04-28  9:38 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-26 13:46 [Qemu-devel] [PATCH v2 0/3] qemu-img/convert: Some small fixes Max Reitz
2017-04-26 13:46 ` [Qemu-devel] [PATCH v2 1/3] qemu-img/convert: Use @opts for one thing only Max Reitz
2017-04-26 14:03   ` Eric Blake
2017-04-26 14:15     ` Max Reitz
2017-04-26 13:46 ` [Qemu-devel] [PATCH v2 2/3] qemu-img/convert: Move bs_n > 1 && -B check down Max Reitz
2017-04-26 14:19   ` Eric Blake
2017-04-26 13:46 ` [Qemu-devel] [PATCH v2 3/3] qemu-img: Document backing options Max Reitz
2017-04-26 14:20   ` Eric Blake
2017-04-27 15:25   ` Kevin Wolf
2017-04-27 15:36   ` Eric Blake
2017-04-28  9:38     ` Kevin Wolf [this message]
2017-04-28 14:03       ` Max Reitz
2017-04-27 15:27 ` [Qemu-devel] [PATCH v2 0/3] qemu-img/convert: Some small fixes Kevin Wolf

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170428093825.GB4714@noname.redhat.com \
    --to=kwolf@redhat.com \
    --cc=eblake@redhat.com \
    --cc=f4bug@amsat.org \
    --cc=mreitz@redhat.com \
    --cc=qemu-block@nongnu.org \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.