All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ian Campbell <ian.campbell@citrix.com>
To: Ian Jackson <Ian.Jackson@eu.citrix.com>
Cc: Euan Harris <euan.harris@citrix.com>,
	xen-devel@lists.xensource.com, Wei Liu <wei.liu2@citrix.com>
Subject: Re: [PATCH] xl: Change output from xl -N create to be more useful
Date: Tue, 30 Jun 2015 12:22:47 +0100	[thread overview]
Message-ID: <1435663367.21469.110.camel@citrix.com> (raw)
In-Reply-To: <21901.28718.398582.229226@mariner.uk.xensource.com>

On Fri, 2015-06-26 at 16:30 +0100, Ian Jackson wrote:
> Wei Liu writes ("Re: [PATCH] xl: Change output from xl -N create to be more useful"):
> > On Fri, Jun 26, 2015 at 03:29:15PM +0100, Ian Jackson wrote:
> ...
> > > Note that this change is NOT BACKWARDS COMPATIBLE.  But it would only
> > > adversely affects anyone who uses `xl -N create' and then saves and
> > > processes the JSON.  (The output from xl list et al is not changed; it
> > > normally needs the domid.)  Such a user should probably have already
> > > have complained about the infelicitous output.  If they haven't it
> > > would be simple enough for them to bookend the output so as to provide
> > > compatible output.
> > > 
> > > If this backward compatibility problem is considered a blocker for
> > > this patch, then I will respin, with one of the following two
> > > workarounds:
> > >   - A new option to force sane output
> > >   - Generate output which contains the domain config twice,
> > >     once directly in the main struct, and a copy in "config"
> > 
> > I don't think keeping a broken interface for the sake of backward
> > compatibility is worth it.
> 
> The interface isn't unuseable.  You just have to use jq(1) or
> something to transform the output.
> 
> AFAIAA we have no in-tree consumers of libxl json domain configs and
> further I'm not aware of any out-of-tree consumers apart from the one
> I just introduced into the xs-ring3 ao abort test suite.
> 
> But, thanks for the favourable opinion :-).

I think we should just risk the change and if anyone notices and cares
we could consider retrofitting OUTPUT_FORMAT_JSON_XEN45 to xl. I think
it's unlikely anyone will notice.

Ian.

  reply	other threads:[~2015-06-30 11:22 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-26 14:29 [PATCH] xl: Change output from xl -N create to be more useful Ian Jackson
2015-06-26 14:36 ` Ian Jackson
2015-06-26 15:10 ` Wei Liu
2015-06-26 15:30   ` Ian Jackson
2015-06-30 11:22     ` Ian Campbell [this message]
2015-07-03 11:10 ` Ian Jackson
2015-07-03 11:25 ` Ian Campbell
2015-07-03 11:31   ` Ian Jackson
2015-07-03 11:48     ` [PATCH 1/3] xl: Break out flush_stream Ian Jackson
2015-07-03 11:48       ` [PATCH 2/3] xl: Change output from xl -N create to be more useful Ian Jackson
2015-07-03 11:48       ` [PATCH 3/3] xl: xl -N create -d sends json output to stdout, not stderr Ian Jackson
2015-07-03 12:06       ` [PATCH 1/3] xl: Break out flush_stream Ian Campbell
2015-07-03 13:44         ` [PATCH 2/3] xl: Change output from xl -N create to be more useful [and 1 more messages] Ian Jackson

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=1435663367.21469.110.camel@citrix.com \
    --to=ian.campbell@citrix.com \
    --cc=Ian.Jackson@eu.citrix.com \
    --cc=euan.harris@citrix.com \
    --cc=wei.liu2@citrix.com \
    --cc=xen-devel@lists.xensource.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 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.