From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wei Liu Subject: Re: [PATCH V13 5/5] xl: add pvusb commands Date: Wed, 24 Feb 2016 12:03:03 +0000 Message-ID: <20160224120302.GN3723@citrix.com> References: <1453192795-15693-1-git-send-email-cyliu@suse.com> <1453192795-15693-6-git-send-email-cyliu@suse.com> <20160216165608.GA21669@gmail.com> <56C7626F02000066000AE505@relay2.provo.novell.com> <20160219105247.GA22789@aepfle.de> <20160219120708.GA18695@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <20160219120708.GA18695@gmail.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Olaf Hering Cc: Juergen Gross , wei.liu2@citrix.com, ian.campbell@citrix.com, george.dunlap@eu.citrix.com, Ian.Jackson@eu.citrix.com, Chun Yan Liu , xen-devel@lists.xen.org, Jim Fehlig , Simon Cao List-Id: xen-devel@lists.xenproject.org On Fri, Feb 19, 2016 at 01:07:08PM +0100, Olaf Hering wrote: > On Fri, Feb 19, Olaf Hering wrote: > > > Not sure how to handle it, perhaps exit when xl -N is called? > > Also the interface is 'xl -N' is not clearly defined. What is it > supposed to do with the newly introduced ctrl types? Should it display > the json just for the dev, just for the ctrl+dev or the entire ctrl with > all existing devs + the new dev? > Who is the consumer of the json output? > xl(1) says just "-N Dry run: do not actually execute the command." > > I'm asking this mainly in the context of main_vscsiattach, which right > now dumps the enitre ctrl with all existing devs + the new dev. > I just turn everything into JSON and print it out? Say, if you only add a controller, you just print the ctrl JSON. If you add a controller and a bunch of devices, you print all of them. Does this sound plausible? I tend to think dryrun output is only used by administrator to eye-ball the resulting structure. I'm not sure if it is meant to be stable at all. Maybe Ian has a second opinion on this. Wei. > Olaf