From: Josh Durgin <josh.durgin@inktank.com>
To: Stratos Psomadakis <psomas@grnet.gr>
Cc: Yehuda Sadeh <yehuda@inktank.com>,
ceph-devel@vger.kernel.org, synnefo-devel@googlegroups.com
Subject: Re: [PATCH] rbd: Add --json flag for the showmapped command
Date: Mon, 17 Dec 2012 09:32:32 -0800 [thread overview]
Message-ID: <50CF5730.5060507@inktank.com> (raw)
In-Reply-To: <50CAE9F0.3020607@grnet.gr>
On 12/14/2012 12:57 AM, Stratos Psomadakis wrote:
> On 12/13/2012 07:17 PM, Yehuda Sadeh wrote:
>> On Thu, Dec 13, 2012 at 7:37 AM, Stratos Psomadakis <psomas@grnet.gr> wrote:
>>> Signed-off-by: Stratos Psomadakis <psomas@grnet.gr>
>>> ---
>>> Hi Josh,
>>>
>>> This patch adds the '--json' flag to enable dumping the showmapped output in
>> I think that it should be "--format=json" rather than --json. This
>> will make it more in line with other tools. Also, then you could have
>> the unpopular --format=xml.
>
> Hi,
>
> the problem is that --format is arleady used in rbd (to select the rbd
> image format). So, you could either use --output-format= for
> plain/json/xml output (but then you would be inconsistent wrt the other
> tools), or change --format to --image-format (or something like that),
> and use --format to select the output formatting.
We could deprecate --format in favor of --image-format, but maintain
backwards compatibility by accepting the string 1 or 2 for --format
still. Maybe not pretty, but it lets us be consistent without changing
existing usage.
Josh
next prev parent reply other threads:[~2012-12-17 17:32 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-16 14:36 rbd tool changed format? (breaks compatibility) Constantinos Venetsanopoulos
2012-11-16 17:14 ` Josh Durgin
2012-11-19 10:20 ` Constantinos Venetsanopoulos
2012-12-13 15:37 ` [PATCH] rbd: Add --json flag for the showmapped command Stratos Psomadakis
2012-12-13 17:17 ` Yehuda Sadeh
2012-12-14 8:57 ` Stratos Psomadakis
2012-12-17 17:32 ` Josh Durgin [this message]
2012-12-17 17:35 ` Yehuda Sadeh
2012-12-17 18:35 ` Josh Durgin
2012-12-17 17:25 ` Josh Durgin
2012-12-19 12:17 ` [PATCH v2] rbd: Support plain/json/xml output formatting Stratos Psomadakis
2013-01-04 23:50 ` Josh Durgin
2013-01-14 13:19 ` Stratos Psomadakis
2013-01-14 17:09 ` Josh Durgin
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=50CF5730.5060507@inktank.com \
--to=josh.durgin@inktank.com \
--cc=ceph-devel@vger.kernel.org \
--cc=psomas@grnet.gr \
--cc=synnefo-devel@googlegroups.com \
--cc=yehuda@inktank.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox