From: Ian Jackson Subject: Re: [PATCH] xen-tmem-list-parse: fix ugly parse output Date: Wed, 14 Nov 2012 12:08:04 +0000 Message-ID: <20643.35236.734433.350743@mariner.uk.xensource.com> References: <38bc9a60-827c-41f8-a667-e08960b8c135@default> <90421d4a-2b5e-49de-9c0f-e4c914980e7f@default> <1352888682.26873.23.camel@zakaz.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1352888682.26873.23.camel@zakaz.uk.xensource.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: Ian Campbell Cc: Dan Magenheimer , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org Ian Campbell writes ("Re: [PATCH] xen-tmem-list-parse: fix ugly parse output"): > On Wed, 2012-11-14 at 00:08 +0000, Dan Magenheimer wrote: > > > > Signed-off-by: Dan Magenheimer > > Acked-by: Ian Campbell and applied, sorry for > the delay. I'm happy to backport this to 4.2. Since none of this is tested by the autotests and the change is self-contained, there is no point waiting to see if it survives in -unstable and I have done so right away. As for 4.1, I think that's really very much in the deep freeze and receiving essential bug/compatibility/security fixes only so I would be inclined to punt on this patch. I have another comment though: The program xen-tmem-list-parse parses the output of xm/xl tmem-list into human-readable format. A missing NULL terminator sometimes causes garbage to be spewed where the two-letter pool type should be output. Would it not be much better if xl tmem-list produced a sane format to start with ? I haven't seen what the old and new formats are like but in general I think xl foo-list should produce information useful to humans. In xl for the future we should be providing json output for things which need to be machine-readable. This may need a transition plan of course. Ian.