From: Ian Jackson Subject: Re: [PATCH 07/19] libxl: provide libxl__xs_*_checked and libxl__xs_transaction_* Date: Thu, 14 Jun 2012 17:53:19 +0100 Message-ID: <20442.5887.893166.341739@mariner.uk.xensource.com> References: <1339176870-32652-1-git-send-email-ian.jackson@eu.citrix.com> <1339176870-32652-8-git-send-email-ian.jackson@eu.citrix.com> <1339586159.24104.193.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: <1339586159.24104.193.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: "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org Ian Campbell writes ("Re: [Xen-devel] [PATCH 07/19] libxl: provide libxl__xs_*_checked and libxl__xs_transaction_*"): > On Fri, 2012-06-08 at 18:34 +0100, Ian Jackson wrote: > > These useful utility functions make dealing with xenstore a little > > less painful. > > > > Signed-off-by: Ian Jackson > > Acked-by: Ian Campbell Thanks. > (minor observation and a typo below) ... > > +int libxl__xs_write_checked(libxl__gc *gc, xs_transaction_t t, > > + const char *path, const char *string); > > I suppose in the future we might consider merging this with > libxl__xs_write -- there's no reason not to always log a failed write, > is there? Maybe. It might fail due to EPERM and there might be another strategy the caller might have available. Although this is rare enough that perhaps such callers should use raw xs calls. Arguably the same applies to read. > > + * 0 commited successfully > > committed Fixed. Ian.