From: Christian Limpach Subject: Re: Re: Timeout connecting to device Date: Mon, 29 Aug 2005 01:23:31 +0100 Message-ID: <20050829002331.GL24659@cl.cam.ac.uk> References: <430A387C.2030108@intel.com> <430BCF14.2040409@intel.com> <1124858620.17004.96.camel@localhost.localdomain> <3d8eece2050824012547b9bb89@mail.gmail.com> <1124939936.9810.16.camel@localhost.localdomain> <20050825110117.GD13781@cl.cam.ac.uk> <1125016027.9945.45.camel@localhost.localdomain> <20050826103748.GI24659@cl.cam.ac.uk> <1125274638.17314.12.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <1125274638.17314.12.camel@localhost.localdomain> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Rusty Russell Cc: Arun Sharma , xen-devel List-Id: xen-devel@lists.xenproject.org On Mon, Aug 29, 2005 at 10:17:18AM +1000, Rusty Russell wrote: > On Fri, 2005-08-26 at 11:37 +0100, Christian Limpach wrote: > > On Fri, Aug 26, 2005 at 10:27:06AM +1000, Rusty Russell wrote: > > > A slight variation on this would be to have the tools create the > > > "setting-up" node, and the driver delete it when it's happy. > > > > > > I want to leave the error node on every error, so that way you can tell > > > if it can't read the backend because of permission problem or something, > > > even if during setup. > > > > How do you tell if an error is final though? Removing the setting-up > > node sounds kind of misleading since the device is not done setting-up. > > I think we need to indicate somehow whether an error is final or > > transient, but I don't think we should require the format of the > > error message to somehow indicate this. > > I don't think the frontend can, in general, tell the difference between > a final error and a transient one. The problem may simply be that the > backend never creates a node we need. If we're completely giving up, we > could remove the setting-up node, but I'm not sure it's worth it? There are error which are final, like a node which holds data which doesn't make sense (like when scanf "%d" fails). Yes, there are some where you can't tell if they are transient or final... I guess the fatal ones I think about are not very likely if the frontend and backend are matched and not broken... christian