From: Ian Campbell Subject: Re: [PATCH] libxl: make libxl_cdrom_insert async Date: Wed, 25 Jul 2012 12:20:07 +0100 Message-ID: <1343215207.18971.86.camel@zakaz.uk.xensource.com> References: <20494.53778.285137.699743@mariner.uk.xensource.com> <1343206077.18971.47.camel@zakaz.uk.xensource.com> <20495.54566.334107.841408@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20495.54566.334107.841408@mariner.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 Jackson Cc: "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org On Wed, 2012-07-25 at 12:14 +0100, Ian Jackson wrote: > Ian Campbell writes ("Re: [PATCH] libxl: make libxl_cdrom_insert async"): > > On Tue, 2012-07-24 at 17:49 +0100, Ian Jackson wrote: > > > This doesn't look actually /incorrect/ but I'm a bit suspicious: if > > > changing to a new non-empty disk, you first write params := "", in one > > > xenstore transaction, and then the non-empty value in a second > > > transaction. Why ? > > > > Mostly because xend did it that way, I agree that it seems pointless > > without adding any additional interlock to the protocol. > > > > At one point I was hoping that copying xend closely would lead to > > working stubdom support etc, but that turned out to be a pipe dream. > > > > Just writing the appropriate key once did seem to work, at least in the > > cases where it works at all, in my experiments so I guess I might as > > well change to that here. > > If any other xenstore client depended on seeing the intermediate > value, the system would be buggy and it would only work by them > winning the race. I guess it's possible that there would be a peer > with a strange bug which means that it misses the first watch event > but I think we should assume that there isn't unless we discover > otherwise. Agreed and changed in V2. Ian.